Remove Shopp Javascript from non-Shopp pages

Following on from a post on the Shopp forum regarding this, a few people are having issues with the Shopp scripts conflicting with some other plugins.

The best way to solve this is to only enable Shopp Javascript on the Shopp pages.

Also good practice to keep page load times down to a minimum.

<?php if ($wp_query->post->ID == 4) { ?>
        // SHOPP SCRIPTS HERE
    <?php } ?>

Where 4 is the ID of the Shopp page in WordPress.

More info

Author: Kieran Barnes

Kieran is a PHP developer with 15 years commercial experience. Specialist in WordPress, CakePHP, CubeCart and all things PHP.

Leave a Reply

Your email address will not be published. Required fields are marked *