Can’t find image to remove

Unfortunately for those that might come across this in the future I am not sure if this solution will help you. As I worked out the offending image was in the footer. I ended up just clicking on various options in CUSTOMISE>>FOOTER BUILDER and then I selected the PRIMARY FOOTER and found BACKGROUND which has … Read more

wp_footer hook running twice

That code doesn’t look like it conforms to the current Widgets API. Perhaps your problem is related? First potential issue: your class test should be plugin-slug-test, in order to avoid naming conflicts. Second potential issue: the only functions inside of your WP_Widget extending class should be: function plugin-slug-test() {} function widget( $args, $instance ) {} … Read more

Javascript from Easy-Fancybox place into footer

You can ask the plugin author to update the plugin so scripts go in the footer rather than the header. Or you can look in the plugin code and see this: wp_enqueue_script(‘jquery.fancybox’, plugins_url(FANCYBOX_SUBDIR.’/fancybox/jquery.fancybox-‘.FANCYBOX_VERSION.’.pack.js’, __FILE__), array(‘jquery’), FANCYBOX_VERSION); What you can do is edit this yourself so that it enqueues in the footer or you can write … Read more

Editing footer for one page, keeping it the same for others

You’re looking for the is_home() and is_front_page() conditional tags USe it like: <?php if(is_home() || is_front_page()) : ?> <!– Small footer on the home page, only has the #footer-navigation div –> <div id=”footer-top”> <ul id=”footer-navigation”> <?php wp_nav_menu( array( ‘container’ => false, ‘theme_location’ => ‘footer-menu’ ) ); ?> <?php else : ?> <!– Footer for the … Read more

enqueue jQuery into the footer

Sure. Set the fifth parameter of wp_enqueue_script or wp_register_script as true, and that script will be placed in the footer. For example, your line wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”), false, ‘1.7.1’); should be wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”), false, ‘1.7.1’, true); And if you ever don’t need/want to specify a version number, just set the fourth parameter to false. More info: … Read more