View Full Version : Using a script in a template

10-12-2015, 11:23 PM
1) Script Title: Background Image Carousel v1.1

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/bgcarousel.htm

3) Describe problem: I installed the script and love it! However, I have one problem. I am using it on a home page. I installed the header portion in the template that is used for all pages and the div tag on the home page where it is viewed. It works great on the home page, but I get an error on all other pages saying that the DIV tag for the carosel cannot be found. What can I do to have it display only on the one page?

10-13-2015, 05:32 AM
You would probably need to use php (assuming that it's a php template) to identify the homepage from the url, and if true, echo the div and insert the script, else do nothing.