WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Display issue if only one slide

[Resolved] Display issue if only one slide

  • Great Plugin!

    But when a slideshow contains only one slide, the slideshow area is blank.

    I changed the file include/meteor-slideshow.php at the line 119:

    echo '<img style="visibility: hidden;" class="meteor-shim" src="' . $meteor_shim[0] . '" alt="" />';

    to

    echo '<img '.($meteor_loop->post_count==1?'':' style="visibility: hidden;"') .'class="meteor-shim" src="' . $meteor_shim[0] . '" alt="" />';

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

    It’s not an elegant modification, but it’s a temporary fix 🙂

    Thanks for your good work!

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

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

    @jleuze

    Hi, thanks for sharing! There’s a fix for this in the beta of Meteor Slides 1.5.1, so when you update the plugin it will continue to work with just one slide. Or you can add more slides to fix it too.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Display issue if only one slide’ is closed to new replies.