Support » Plugins » Calling Jquery mutiple times for plugins in wordpress

  • I know there is a better way to do this, and I want to get best practices right.Please Help.
    Issue 1:
    One of my Jquery plugins, jsquares.min.js is only affecting the first post in the array if divs with a class called right above the closing body tag like so :

    <script type="text/javascript" src=""></script>
    <script type="text/javascript">
    	shuffle_in: false, // have the pictures all fade in on page load?
    	fade_on_hover: false, // do we want the images to fade on hover or just change opacity?
    	caption_slide_down: true // do we want the caption to slide down or just appear?
    }); });

    Im new to jquery, and so even newer to loading jquery in wordpress. I have read : “Loading Jquery in wordpress the right way ” at

    The key in this article is loading wp_enqueue_script. This solution did help with previous plugins however jsquares noted above will only load the first i array.

    Here is the relevant source:

    <!DOCTYPE html>
    <html xmlns="" xmlns:og="" xmlns:fb="" xml:lang="en" lang="en">
    <title> </title>
    <script type="text/javascript" src=""></script>
    <script type='text/javascript' src=''></script>

    Also in the footer is :

    <script type="text/javascript" src=""></script>

    (used for backstretch.min.js)

    I addition to loading jsquares in the footer after the following plugins:
    jquery.backstretch.min.js which has right above it in footer
    There may also be also calls to jquery.please help

  • The topic ‘Calling Jquery mutiple times for plugins in wordpress’ is closed to new replies.