• Resolved Crowflux

    (@crowflux)


    I’ve bought this lovely responsive slider: Unoslider

    It uses jQuery, and I’ve been having difficulties with trying to find out on my own how to correctly make use of the jQuery.noConflict mode. (I do not know javascript.)

    Basically, I need to use external js files and a small bit on the page. I read in the slider authors comments that I only need to change “$” to “jQuery”, but to no avail.

    This is what he asks to link:

    <script src='../wp-content/themes/dss/library/unoslider/jquery-1.7.1.min.js' type='text/javascript'></script>
    <script src='../wp-content/themes/dss/library/unoslider/unoslider.js' type='text/javascript'></script>
    
    <link href='../wp-content/themes/dss/library/unoslider/unoslider.css' rel='stylesheet' type='text/css' />
    <link href='../wp-content/themes/dss/library/unoslider/themes/ribbon/theme.css' rel='stylesheet' type='text/css' />

    Do I even need to link jquery-1.7.1.min.js ?

    The in-page code I will be using:

    <script type='text/javascript'>
    jQuery(document).ready(function(){
    jQuery('#unoslider').unoslider({
    width: 960,
    height: 400});
    });
    </script>

    Could anyone give me a cut & dry answer on what I need to do? I’ve spent too much time failing to figure it out on my own.

  • The topic ‘Problems with jQuery.noConflict mode – Working under a deadline!’ is closed to new replies.