ErikR Posted September 21, 2020 Share Posted September 21, 2020 Site URL: https://coconut-triceratops-wpkr.squarespace.com/new-page-2 Hey There, I was wondering if anyone had a suggestion to replace the video on the home screen to a still image when viewed on mobile devices. I would like the video to play on desktops and laptops, and a picture to replace it for mobile devices. Any help would be much appreciated! Best, Erik Link to comment
tuanphan Posted September 22, 2020 Share Posted September 22, 2020 Hi. You can do this with some custom code. Where video? Can you take a screenshot? We can give code easier. 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!) Link to comment
Susana_SQSP Posted September 23, 2020 Share Posted September 23, 2020 Hey @ErikR, If you are referring to a background video, you can upload a mobile fallback image for that. Check out this Squarespace help article for more details:Adding background videos - Add a mobile fallback image Link to comment
ErikR Posted September 23, 2020 Author Share Posted September 23, 2020 @tuanphan This home video https://coconut-triceratops-wpkr.squarespace.com. I would like it to only play for laptops desktop/iPads but when viewed on a phone, it should be a still picture. Let me know if this helps Link to comment
tuanphan Posted September 24, 2020 Share Posted September 24, 2020 On 9/23/2020 at 11:43 PM, ErikR said: @tuanphan This home video https://coconut-triceratops-wpkr.squarespace.com. I would like it to only play for laptops desktop/iPads but when viewed on a phone, it should be a still picture. Let me know if this helps You can add 2 sections. Section 1 is video (current section). Section 2 is image. Then I will use code to hide Video section + show image section on mobile. 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!) Link to comment
MelB Posted March 17, 2022 Share Posted March 17, 2022 I know this is an old forum but I am trying to make this work currently and not having s uccess. What is the CSS code? Link to comment
tuanphan Posted March 18, 2022 Share Posted March 18, 2022 2 hours ago, MelB said: I know this is an old forum but I am trying to make this work currently and not having s uccess. What is the CSS code? What is site url? 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!) Link to comment
kinguyen Posted April 10, 2023 Share Posted April 10, 2023 Hi @tuanphan can you help me as well for my site please? I also would like to keep the video background playing on the desktop but switch to an image in mobile view. Thank you for your help. My site is: https://k-i.fi/ Link to comment
tuanphan Posted April 11, 2023 Share Posted April 11, 2023 On 4/10/2023 at 3:11 PM, kinguyen said: Hi @tuanphan can you help me as well for my site please? I also would like to keep the video background playing on the desktop but switch to an image in mobile view. Thank you for your help. My site is: https://k-i.fi/ Add to Design > Custom CSS. Replace Pixabay image with your image url /* video desktop image mobile */ @media screen and (max-width:767px) { [data-section-id="633dc6e18d713b57d3e2ee1b"] .section-background>div { opacity: 0; } [data-section-id="633dc6e18d713b57d3e2ee1b"] .section-background { background-image: url(https://cdn.pixabay.com/photo/2023/03/18/16/26/ha-giang-7860907_1280.jpg); background-size: cover; background-repeat: no-repeat; background-position: center; } } 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!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment