7 Replies - 15463 Views - Last Post: 26 March 2012 - 05:00 AM

#1 Reprobus  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 75
  • Joined: 24-November 10

WP Theme Conflicting Issues

Posted 08 February 2012 - 05:13 PM

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() ?
Is This A Good Question/Topic? 0
  • +

Replies To: WP Theme Conflicting Issues

#2 floppyspace  Icon User is offline

  • D.I.C Regular

Reputation: 48
  • View blog
  • Posts: 254
  • Joined: 04-February 10

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?

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.
Was This Post Helpful? 0
  • +
  • -

#3 Reprobus  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 75
  • Joined: 24-November 10

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 ?

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.
Was This Post Helpful? 0
  • +
  • -

#4 floppyspace  Icon User is offline

  • D.I.C Regular

Reputation: 48
  • View blog
  • Posts: 254
  • Joined: 04-February 10

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:

<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.
Was This Post Helpful? 0
  • +
  • -

#5 Reprobus  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 75
  • Joined: 24-November 10

Re: WP Theme Conflicting Issues

Posted 16 February 2012 - 09:42 PM

Since my theme is missing a footer, what effect does this have ?
Was This Post Helpful? 0
  • +
  • -

#6 floppyspace  Icon User is offline

  • D.I.C Regular

Reputation: 48
  • View blog
  • Posts: 254
  • Joined: 04-February 10

Re: WP Theme Conflicting Issues

Posted 17 February 2012 - 07:43 AM

View PostReprobus, 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.
Was This Post Helpful? 0
  • +
  • -

#7 Reprobus  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 75
  • Joined: 24-November 10

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.
Was This Post Helpful? 0
  • +
  • -

#8 floppyspace  Icon User is offline

  • D.I.C Regular

Reputation: 48
  • View blog
  • Posts: 254
  • Joined: 04-February 10

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1