bryanb11 Posted July 5, 2023 Posted July 5, 2023 (edited) I have video thumbnails on my site for desktop but am trying to make the mobile fallback image display only for mobile devices. Right now the video loads on mobile and it looks low quality, so would prefer to only have the fallback static image show for mobile screens. And keep the video for desktop. Any help would be appreciated! https://www.bryanbarnes.me/ Edited July 5, 2023 by bryanb11 Adding URL
tuanphan Posted July 7, 2023 Posted July 7, 2023 Hi, You mean video of projects on homepage? bryanb11 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
bryanb11 Posted July 7, 2023 Author Posted July 7, 2023 8 hours ago, tuanphan said: Hi, You mean video of projects on homepage? Yeah exactly, I would like them to be stills for mobile. But keep what it looks like on desktop. TY!
tuanphan Posted July 9, 2023 Posted July 9, 2023 On 7/7/2023 at 10:17 PM, bryanb11 said: Yeah exactly, I would like them to be stills for mobile. But keep what it looks like on desktop. TY! Try adding this to Design > Custom CSS /* Mobile video homepage */ @media screen and (max-width:767px) { body.homepage div#player { visibility: hidden !important; opacity: 0 !important; } body.homepage .sqs-video-background.mobile .custom-fallback-image { opacity: 1 !important; display: block !important; z-index: 10 !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
bryanb11 Posted July 9, 2023 Author Posted July 9, 2023 Thank you! I tried this and when i look at it the site on mobile, it seems that it is not showing the fall back image. Is there a fix? Thanks again
Solution tuanphan Posted July 11, 2023 Solution Posted July 11, 2023 On 7/9/2023 at 10:44 PM, bryanb11 said: Thank you! I tried this and when i look at it the site on mobile, it seems that it is not showing the fall back image. Is there a fix? Thanks again Use this new code /* Mobile video homepage */ @media screen and (max-width:767px) { body.homepage div#player { visibility: hidden !important; opacity: 0 !important; } body.homepage .sqs-video-background .custom-fallback-image { opacity: 1 !important; display: block !important; z-index: 10 !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment