is it possible to have fullpage.js only on home page, and on another to have normal web page. So far, when I put framework to work, it work perfectly on home page, but now I want to have another page which is normal, without any scrolling options (I putted code without fullpage and section classes), and it does not work. Can not scroll down at all. Any solutions? I am using wordpress as a cms.
You probably just need to enqueue the plugin conditionally. Register js in your functions.php and the enqueue it only in front-page.php, or what your theme is using for the front. Alternatively you can enqueue it in functions.php in if(is_front_page()) statement.
Related
I want to add my own header and footer to a WordPress website and not sure if it is possible ? I tried and researched a lot and even used wp_head action to insert my code but it's not for that purposes and it is inside head section of a page.
My question is can we add our own header from a plugin ? If yes, then how ? If not then any suggession to make it done.
Thanks
you need to add your own code in your theme header.php and footer.php file or customize those file with your own code. This is best solution for you. After customize your files, you can backup those files based on theme update, so that you can you can get back your own code again.
Yes you can do it from a plugin.
First of all you must read some documentation:
about action hooks
get_header hook
and wp-includes/general-template.php
with the above as toolbelt you can do it.
I can not understand why you want to make this. If you make a theme the header and footer is custom. If you working on existing theme make a child theme an make custom header and footer.
Home i helped!
You can enqueue many scripts in WordPress so they don't stop page rendering by placing the Javascript at the bottom of the page (near ). Is this possible with the mmenu plugin? If so, how?
Yes. You will need to edit the plugin code but it's possible. You will need to use the wp_enqueu_script function and set parameter $in_footer to true.
Refer documentation.
I am trying to get rid of the information displayed above the actual check out page. It shows me Welcome Admin, and contact numbers and email. I want to change those details.
The checkout page in wordpress only shows a shortcode for [woocommercepage_checkout], which css should i go to ?
Cheers
You can use a hook to which you can add your custom css.(A helpful like for this would be WP_ENQUEUE_STYLE)
In the hook function you can register and enqueue your custom css file. In order to ensure that your custom CSS won't desrupte other page's styling write your enqueuing line in a conditions like is is_checkout().
All this code you need to add in your theme's functions.php or you can add this in your custom plugin.
Later all styling part can be handled in the css file which you register and enqueue.
This way you can Elegantly deal with the styling in a WordPress way.
This is puzzling. I have a child theme (with its own custom functions.php) that works fine except for a handful of pages. For some reason, it's like those handful of pages don't recognize the custom functions.php file.
I have the user filling out a BuddyPress registration form - and then have my functions.php file use the bp_after_registration_confirmed hook to update a few things behind the scenes. The bizarre part is that this works exactly as expected in my development environment - with functions.php responding to the BuddyPress hook. But on the live server, it totally ignores that and just completes registration without invoking my custom function.
Any idea what I may be missing?
What could possibly cause the live server to not see/execute the child theme's custom functions.php file in a handful of instances?
-- UPDATE --
I noticed that for the pages that do not see the child theme's functions.php, they do see functions from the parent theme's functions.php file. Weird, right?
Have you checked if they are using child theme templates?
If they're using parent theme templates, try creating overriding copies of the same template and see if they then use your child themes functions.php
I'm trying to make a facebook app version of an existing page and am having a major issue: my exposed filter block isn't showing up.
I'm using themekey to switch to a facebook version of my theme for the url the facebook version of the page is on. When my page is displayed in my normal theme it works fine, the filter is there, all is good. In my special theme there is nothing. Thing is...the special theme is a straight copy of the normal theme (with the .info modified and all the template functions removed). The block is in the preface middle region, and
<?php
print $preface_middle;
?>
is still in the page template for that page.
On my dev site I tried to simplify matters by making the facebook theme the site wide theme (thinking that themekey was throwing things off somehow) and I had the same issue. Eventually I fixed it (somehow) on my dev site, but when I tried to use those same fixes on the live site they didn't work.
What can prevent a block with exposed filters from displaying when it should be? Like I said, when I turn off themekey the filters are there, Drupal clearly knows that the filters should be displayed at that url. I'm going nuts...what can I do?
When you go to blocks section of your site: you need to add the block to the preface_middle section in the theme you want.
so:
Make sure the "facebook" theme is active
Go to blocks section and click on the "fascebook theme"
Move the block to the section you want for this theme.