I have a few problems with my theme. How do I add a wp_footer() call, without decaying the theme ? The theme has a jQuery library call which is hard coded, as well as my theme jQuery is not adhereing to the no-conflict rules, how do I removed or replace with wp_enqueue_script() ?
WP Theme Conflicting Issues
Page 1 of 17 Replies - 6873 Views - Last Post: 26 March 2012 - 05:00 AM
Replies To: WP Theme Conflicting Issues
#2
Re: WP Theme Conflicting Issues
Posted 09 February 2012 - 04:46 AM
hi, not 100% on what your saying but
This is a possible function call for the footer?
Have a look at
wp_footer
And see the example.
Hardcoded jquery can cause all kinds of conflicts when more than one plugin requires its use.
Short version
More in-depth
Did you try the no conflict method?
Hope this helps to some extent.
This is a possible function call for the footer?
function wp_footer() {
do_action('wp_footer');
}
Have a look at
wp_footer
And see the example.
Hardcoded jquery can cause all kinds of conflicts when more than one plugin requires its use.
Short version
More in-depth
Did you try the no conflict method?
jQuery(document).ready(function() // instead of: $(document).ready(function()
Hope this helps to some extent.
#3
Re: WP Theme Conflicting Issues
Posted 09 February 2012 - 05:08 PM
I don't know PHP, do I install the code below at the end between the open and closing PHP tags ?
I don't have a footer.php within my theme, how do I add it without the them going wonky ? It never was put into the theme.
jQuery(document).ready(function() // instead of: $(document).ready(function()
I don't have a footer.php within my theme, how do I add it without the them going wonky ? It never was put into the theme.
#4
Re: WP Theme Conflicting Issues
Posted 16 February 2012 - 01:29 AM
Your theme has a <div> called base - is it empty in the php files? without code it is hard to suggest what to do.
You could possibly just add a footer.php page and then call it at the end of say page.php (depending on your theme and how it is made/layed out). Download one of the standard Wordpress theme and see what is in the footer.php , it will probably contain:
in your case you will need to call it to the:
You may be able to just add any footer and just edit it to be 'base' rather than footer.
Then call it to say the bottom of page.php with:
Assuming that the standard WordPress is still intact then this should work.
hope it helps.
You could possibly just add a footer.php page and then call it at the end of say page.php (depending on your theme and how it is made/layed out). Download one of the standard Wordpress theme and see what is in the footer.php , it will probably contain:
<div id="footer">
in your case you will need to call it to the:
<div id="base">
You may be able to just add any footer and just edit it to be 'base' rather than footer.
Then call it to say the bottom of page.php with:
<?php get_footer(); ?>
Assuming that the standard WordPress is still intact then this should work.
hope it helps.
#5
Re: WP Theme Conflicting Issues
Posted 16 February 2012 - 09:42 PM
Since my theme is missing a footer, what effect does this have ?
#6
Re: WP Theme Conflicting Issues
Posted 17 February 2012 - 07:43 AM
Reprobus, on 16 February 2012 - 09:42 PM, said:
Since my theme is missing a footer, what effect does this have ?
To answer this it has no effect at all, your page loads doesn't it and all is working as it should?
Perhaps I have missed what you are actually trying to achieve, what is the reasoning for adding the wp_footer() is it a plugin that is not working or a theme attribute?
You can just add your own wp_footer() however the header normally does most of the calls anyway.
#7
Re: WP Theme Conflicting Issues
Posted 18 February 2012 - 08:05 AM
The reason for adding the wp_footer() is that a plugin is not working correctly. And that I need to add it to where it belongs.
#8
Re: WP Theme Conflicting Issues
Posted 26 March 2012 - 05:00 AM
The answer to this is to go into the plugin and change the calls of wp_footer to wp_head, this should work. Unless there is some requirement for the plugins functions to load after the page has loaded, also in this case a footer <div> could be added and a call to the wp_footer could be achieved, this call could be added to the base division that is located in his/your theme.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|