Jquery plugin help

Hello

Thank you for reading this.
I have a js plugin installed on a wordpress site. Its a js curtain scroll effect - it is in effect on all the pages. I need it to only function on the cover “home” page. Can someone please help even with a general direction where to look. I can be more specific, but I do not now what is important. Question will help me find out a lot also.

We’ll need the plugin name and probably the site url to help you out, but basically you either have to wrap the script tag with:

<?php if(is_front_page()): ?><script src=""></script><?php endif; ?>
<!-- or -->
<?php if(is_front_page()) wp_enqueue_script(); ?>

Or in your JavaScript (assuming you’re using jQuery and you’re theme is properly setup):

 $('body.home #your-element').curtainScrollMethod() // Only activate the curtain plugin on the home page

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.