Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    @mistiquethings Meteor Slides 1.5.1 should be released in the next couple of weeks.

    tnks,
    we create a simple javascript to patch the problem for the moment:

    var $j = jQuery.noConflict();
    $j(document).ready(function(){
    	if(!$j(".mslide-2").length){
    		$j(".meteor-clip img").css("display","none");
    		$j(".mslide-1, .mslide-1 img").css("display","block");
    		}
    });
    Plugin Author Josh Leuze

    (@jleuze)

    Great, good to hear that you’ve got a fix.

    Well, open meteor-slideshow.php

    Go to line 120

    Switch this

    if ( $meteor_count == 1 ) {
    
    	$meteor_shim = wp_get_attachment_image_src( get_post_thumbnail_id(), 'featured-slide');
    
    	echo '<img style="visibility: hidden;" class="meteor-shim" src="' . $meteor_shim[0] . '" alt="" />';
    
    }

    With this

    if ( $meteor_count == 1 ) {
    
    	$meteor_shim = wp_get_attachment_image_src( get_post_thumbnail_id(), 'featured-slide');
    
    	echo '<img style="visibility:';
    	if($meteor_loop->post_count == 1) echo 'visible';
    	else echo ' hidden';
    	echo ';" class="meteor-shim" src="' . $meteor_shim[0] . '" alt="" />';
    }

    This trick shows first image only when you have 1 slide

    Plugin Author Josh Leuze

    (@jleuze)

    @madlefty Thanks for sharing, a fix for this is included in Meteor Slides 1.5.1, you can get the beta on Github.

    @madlefty option works for me but…

    I edited the css file to have a caption but it’s not showing anymore:
    with caption: https://wp1.thetykes.com/kleding/
    single image in slider: https://wp1.thetykes.com/service/

    anyone with a solution?

    @jleuze great plugin, thanks a lot!

    Plugin Author Josh Leuze

    (@jleuze)

    @d.scheltinga Are you sure you updated everything to the beta of 1.5.1? It looks like the slideshow template and stylesheet are still 1.5? I would make sure you update these and re-apply your changes and then the single slide should work with a caption.

    Thanks, seems it didn’t work cause I copied the old stylesheet with my own modifications, now I’ve updated to the 1.5.1 stylesheet it works!

    Plugin Author Josh Leuze

    (@jleuze)

    @d.scheltinga No problem!

    [email protected]

    (@lyndaconnectionsilcom)

    I had the slide show up and working then updated WordPress and my theme. I deactivated the plug in and widget and put them up again, but the slide show no longer shows up. My site is https://www.connectionsforindependentliving.org

    Plugin Author Josh Leuze

    (@jleuze)

    @lynda Looks like you got it working?

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘[Plugin: Meteor Slides] Image not showing when only 1 slide is added’ is closed to new replies.