WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. olfak
    Member
    Posted 1 year 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="" />';

    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/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 1 year 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

Tags

No tags yet.