Technically you can only have one template, it loads the same template for each slideshow. But you can add conditionals to that template to check which slideshow is being loaded and use different markup depending on which slideshow it is.
These could be separate files if you need to make significant changes, like you could create a new template just for the slideshow captions and include that in the slideshow template conditionally, just for certain slideshows.
Thread Starter
Marty
(@bozzmedia)
Thank you, Josh! Sounds like a good plan. By any chance do you have any code snippets or examples to help me get started with the conditional statements?
Sure, here’s a simple example. If you wanted to add captions to the a slideshow, like the custom slideshow template example, and have the captions load on just the “home” slideshow, you could use this conditional statement:
if ( $slideshow == "home" ) {
the_title();
}
Thread Starter
Marty
(@bozzmedia)
Thank you. I have been consistently impressed with the development and support for this plugin over the years. Making a contribution, cheers.
You’re welcome, thanks for your donation!