• Resolved Marty

    (@bozzmedia)


    Great plugin!

    I have customized the default php template file per the documentation.

    Question: Is it possible to have more than one template for a single website? My hope is to have two or three different templates for different purposes / contents. Thanks!

    https://ww.wp.xz.cn/plugins/meteor-slides/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    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?

    Plugin Author Josh Leuze

    (@jleuze)

    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.

    Plugin Author Josh Leuze

    (@jleuze)

    You’re welcome, thanks for your donation!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Mutliple Slideshow Templates via metadata?’ is closed to new replies.