jShowOff icon indicating copy to clipboard operation
jShowOff copied to clipboard

Wordpress + jShowOff

Open adreal opened this issue 14 years ago • 1 comments

I get the following error:

Uncaught TypeError: Cannot call method 'jshowoff' of null on jshowoff JS on line 264

})(jQuery);

//Banner

            $(document).ready(function(){ $('#features').jshowoff(); });   <-- line 264

//

I put CSS, Jquery JS and jshowoff JS in the header of header.php in Wordpress. jhshowoff JS containt line 264 with the code shown before.

In the body section I have test DIVs:

         <div id="features">
            <div>1</div>
            <div>2</div>    
            <div>3</div>
            <div>4</div>
        </div>

What could be the problem?

adreal avatar Nov 14 '11 11:11 adreal

WordPress doesn't play nice with the "$" used... try:

jQuery(document).ready(function($){ $('#features').jshowoff(); });

joshcanhelp avatar Dec 20 '11 19:12 joshcanhelp