0

Does anyone know how to only load the Views Slideshow JavaScript on certain content-types, pages, or the front page?

0

If you want to only enable a Views Slideshow (or any other object) on certain pages, I recommend having Views output a block and then setting that block to display only on the necessary pages. It should only call the js (which should reside in sites/all/libraries) on pages that load the block. You can then set the block to display or hide by role, page, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.