Group Admins

WordPress Troubleshooting and Support

Public Group active 1 year, 5 months ago ago

WordPress support from our community

JQuery Library

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1168
    Margarete Koenen
    Participant

    I am trying to add some jQuery to a page and added the following to the functions file to call on the jQuery library:
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js’, false, ‘1.5.2’);
    wp_enqueue_script(‘jquery’);
    However this interfered with the functioning of the DynamicContentsGallery. I thought I’d just pull in the local copy of jQuery and commented out the first two lines. Now my little jQuery script did not work. After some experimenting, I got everything to work by just commenting out the first line. This seems strange to me and I am still wondering what would be the best way to call on the jQuery library in this case.

    Thanks for any suggestions.

    #1904
    Steve
    Keymaster
    #1905
    Margarete Koenen
    Participant

    Yes, one of the options is to switch the gallery from mootools to jQuery which would have solved the conflict, but I had already done a bunch of customizations and did not want to lose them. In any case, its all working now – even if I don’t understand why its working.

    Thanks for the link.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.