WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] Specify slides in metadata (ie display only 1st slide) (4 posts)

  1. Cormac Bracken
    Member
    Posted 1 year ago #

    Is there a way to specify which slides to display, using metadata?

    Slideshows are inherently heavy on bandwidth. I'd like mobile users to get just the first slide from any given slideshow. Something like this:

    if ( wp_is_mobile() ) {
    	meteor_slideshow( "slideshow-slug-1", "quantity: 1" );
        }
        else
    	meteor_slideshow( "slideshow-slug-1" );

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

  2. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Cool, I didn't know they had added that mobile check function. There isn't a simple way to set the quantity, I would use different slideshows for each, then you could even serve a smaller image to mobile devices if you wanted to:

    <?php if ( wp_is_mobile() ) {
    	meteor_slideshow( "standard-slideshow", "" );
    }
    else {
    	meteor_slideshow( "mobile-slideshow", "" );
    } ?>
  3. Cormac Bracken
    Member
    Posted 1 year ago #

    For a moment I thought this was a perfect and simple solution. But wp_is_mobile() returns TRUE even for full size tablets. Serving them a small-image slideshow wouldn't look so great.

    I guess I could install Mobble and have something like

    if ( wp_is_mobile()&& !is_tablet() ) {
        meteor_slideshow( "mobile-slideshow", "" );
    }
    else ...

    Or a single slide slideshow. Or a static image reference. Decisions...

  4. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah that is tricky, is mobile is going to come back true in a lot of situations, so you wouldn't want to use a smaller image. But even a single larger image that can scale across all mobile devices would be a lot lighter weight than a whole slideshow.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic