jShowOff Issue (2 posts)

  1. ryanve
    Posted 5 years ago #

    I'm using jShowOff inside home.php within the <body>.

    I have both jQuery and jshowoff.min.js loaded in my <head> in header.php.

    The jShowOff only seems to work if I load jQuery a second time, directly before the jShowOff HTML in home.php.

    The code I'm using is here.

    I've tried starting the script with both $(document).ready(function() and jQuery(document).ready(function() but either way it still only works when jQuery is loaded directly before it.

    Any idea how to avoid loading jQuery twice?

  2. ryanve
    Posted 5 years ago #

    Problem solved by changing all instances of $ to jQuery

              jQuery(document).ready(function(){ jQuery('#basicFeatures').jshowoff({
                    links: false,
                    controls: false,
                    effect: 'fade',
                    cssClass: 'basicFeatures',
                    hoverPause: false
                }); });

Topic Closed

This topic has been closed to new replies.

About this Topic