Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #241683

    How do I add fallback option for video on mobile devices? I have update the theme as of today. URL = wildcatmattress.com

    #241942

    Hi simplyaha!

    Edit the video slide then look for the “Choose fallback image for mobile devices” option right below the video url field. Unfortunately, the fallback image is not available on the layer slider.

    Cheers!
    Ismael

    #242162

    Thank you. A solution to replacing the layer slider on mobile only was my hope.

    #242501

    Hey!

    Please edit functions.php, find this code on line 16:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this code:

    add_theme_support('avia_template_builder_custom_css');
    

    On the homepage, add a fullwidth slider then add a “Custom Css Class”. Just scroll at the very bottom to see the field. What we’re trying to do is to show layerslider on desktop view then swap the fullwidth slider when viewing on mobile devices. Let’s add “sample-slider” to the “Custom Css Class” field of the fullwidth slider. Add this on Quick CSS or custom.css:

    @media only screen and (min-width: 769px) {
    .sample-slider { display: none !important opacity: 0 !important; 
    }
    }
    
    @media only screen and (max-width: 768px) {
    .sample-slider { display: block !important opacity: 1 !important; 
    }
    
    #layer_slider_1 {
    display: none !important;
    }
    }

    Cheers!
    Ismael

    #242783

    Thank you Ismael. We will use this as our back up plan.Since yesterday we have determined that our problems are with the videos. All the slides in the layer slider, but the video, look good on the phone. We seem to have an issue with all the Vimeo videos (not just slider) stalling before the iphone player picks them up. Hopefully we can resolve this before going to a back up slider.

    #243714

    Hi!

    Ok, I’ll leave this thread open.

    Cheers!
    Peter

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.