-
AuthorPosts
-
March 22, 2014 at 11:43 pm #241683
How do I add fallback option for video on mobile devices? I have update the theme as of today. URL = wildcatmattress.com
March 24, 2014 at 5:51 am #241942Hi 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!
IsmaelMarch 24, 2014 at 4:44 pm #242162Thank you. A solution to replacing the layer slider on mobile only was my hope.
March 25, 2014 at 4:21 am #242501Hey!
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!
IsmaelMarch 25, 2014 at 4:11 pm #242783Thank 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.
March 27, 2014 at 9:08 am #243714Hi!
Ok, I’ll leave this thread open.
Cheers!
Peter -
AuthorPosts
- You must be logged in to reply to this topic.
