WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] Wrong code? (2 posts)

  1. arturocivit
    Member
    Posted 1 year ago #

    Hi guys, maybe a more experienced coder can give me a hand, what's wrong with this?

    <?php if ( $slideshow == "Desserts" ) { echo 'class="lightbox"'} ?>

    Been trying but every time i got this:

    Parse error: syntax error, unexpected '}', expecting ',' or ';' in /home/content/21/10754121/html/name/wp-content/themes/name/template-cuisine-desserts.php on line 28

    Thanks!

    http://wordpress.org/extend/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    I already answered this question elsewhere, but here's the answer for future reference:

    The slideshow conditional should be lowercase like this:

    <?php if ( $slideshow == "desserts" ) { echo 'class="lightbox"'; } ?>

    But that won't work in just any spot, you need to add the lightbox class to the slide link in a custom slideshow template: http://jleuze.com/plugins/meteor-slides/customizing-the-slideshow-template/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.