All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Remove jquery -  (Read 458 times)

0 Members and 1 Guest are viewing this topic.

Offline thomasfinn

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: Sofa Panda
Remove jquery -
« on: 11 March 2010, 15:18 »
Hi

Does anyone know how/where i would remove the Jquery insertion to wordpress.

I already have Jquery loaded and having to instances messes things up to the point where nothing jquery driven will work....

I know somebody really smart out there knows... please help!?

Best regards
Thomas

Offline ericwatkins

  • Newbie
  • *
  • Posts: 2
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: Wave
Re: Remove jquery -
« Reply #1 on: 16 July 2010, 16:18 »
To remove jQuery from WordPress just put this in your functions.php file:

if (!is_admin()) {
        wp_deregister_script('jquery');
}

However, the best way to deactivate jQuery and register your own is to use a function like this:

function redefine_jquery() {
    if (!is_admin()) {
        wp_deregister_script('jquery');
        wp_register_script('jquery', ''.get_bloginfo('template_url').'/js/jquery.js"', false, '1.4.2');
        wp_enqueue_script('jquery');
    }
}

just make sure that it points to the actual path of your jquery file...