Meteor Slides
[resolved] Display issue if only one slide (2 posts)

  1. olfak
    Posted 3 years ago #

    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="" />';


    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!


  2. Josh Leuze
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.