WordPress.org

Ready to get started?Download WordPress

Forums

jShowOff Issue (2 posts)

  1. ryanve
    Member
    Posted 3 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
    Member
    Posted 3 years ago #

    Problem solved by changing all instances of $ to jQuery

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

Topic Closed

This topic has been closed to new replies.

About this Topic