Sayuri_ Posted September 3, 2021 Share Posted September 3, 2021 (edited) Site URL: https://www.sayuriichida.com/ Hello, Can anyone please help me with disabling video background only in mobile view? I have tried most of the CSS found on similar topics, but none worked on my website. The background video gets cropped weirdly on mobile, so that I would like to hide it. I was able to disable the video with some CSS. However, it hid the project titles altogether, which are located in the centre of my homepage. Thank you very much in advance. Best regards, Sayuri Edited September 3, 2021 by Sayuri_ Found redundant information Link to comment
tuanphan Posted September 5, 2021 Share Posted September 5, 2021 Hi, You want disable mobile video? Or Resize mobile video? 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
Sayuri_ Posted September 5, 2021 Author Share Posted September 5, 2021 (edited) Hello @tuanphan, I want to disable (hide) the background video of my homepage only on mobile as the video gets cropped and it doesn't look great. Please find the screenshots of mobile and desktop views attached. Thank you, Sayuri Edited September 5, 2021 by Sayuri_ Link to comment
tuanphan Posted September 7, 2021 Share Posted September 7, 2021 Add to Design > Custom CSS /* hide video homepage on mobile */ @media screen and (max-width:767px) { body.homepage .sqs-video-background-native__video-player.video-player { visibility: hidden; } } jjohansson 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!) Link to comment
Sayuri_ Posted September 7, 2021 Author Share Posted September 7, 2021 @tuanphan Wow! It worked perfectly! Thank you so much!! Link to comment
ViktorMcFly Posted September 10, 2021 Share Posted September 10, 2021 @tuanphan Would you be able to help me? I'm in the same boat as the OP, but I was wondering how i'd be able to disable the video, just like how the code works for me, but to also be able to show the fallback image? Link to comment
Flambassador Posted September 10, 2021 Share Posted September 10, 2021 @tuanphan I have the same question as @ViktorMcFly about being able to show the fallback image in the place of the video on mobile Thank you! Link to comment
tuanphan Posted September 12, 2021 Share Posted September 12, 2021 On 9/10/2021 at 10:57 AM, ViktorMcFly said: @tuanphan Would you be able to help me? I'm in the same boat as the OP, but I was wondering how i'd be able to disable the video, just like how the code works for me, but to also be able to show the fallback image? On 9/11/2021 at 12:26 AM, Flambassador said: @tuanphan I have the same question as @ViktorMcFly about being able to show the fallback image in the place of the video on mobile Thank you! Can you share site url? We can check 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
Flambassador Posted September 13, 2021 Share Posted September 13, 2021 @tuanphan My site URL is www.laurenkalette.com The text on mobile is getting cut off. If there is a way of resizing for mobile that would be ideal. Otherwise Hiding the video but displaying a fallback image is the next best thing. Thank you. Link to comment
tuanphan Posted September 16, 2021 Share Posted September 16, 2021 On 9/14/2021 at 3:11 AM, Flambassador said: @tuanphan My site URL is www.laurenkalette.com The text on mobile is getting cut off. If there is a way of resizing for mobile that would be ideal. Otherwise Hiding the video but displaying a fallback image is the next best thing. Thank you. Add to Design > Custom CSS /* resize mobile home top video */ @media screen and (max-width:767px) { [data-section-id="60466712d8d3031cc51665a4"] { min-height: unset !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!) Link to comment
Annabanana121 Posted April 30, 2022 Share Posted April 30, 2022 Hey dear @tuanphan, I have the same problem as everyone here, I was able to hide the video with the css you provided, but I would like to display the fallback image when in mobile view, instead of the resizing option. Do you have an idea for that? Best regards! Link to comment
ThomasHealey Posted April 30, 2022 Share Posted April 30, 2022 /* remove video - show fallback image on mobile */ @media screen and (max-width:767px) { body.homepage article section:first-child .sqs-video-background-native__video-player.video-player { display: none; } body.homepage article section:first-child .sqs-video-background-native__fallback-image--hidden { opacity: 1 !important; } } jjohansson 1 Link to comment
tuanphan Posted May 1, 2022 Share Posted May 1, 2022 16 hours ago, Annabanana121 said: Hey dear @tuanphan, I have the same problem as everyone here, I was able to hide the video with the css you provided, but I would like to display the fallback image when in mobile view, instead of the resizing option. Do you have an idea for that? Best regards! What is your 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
clarkbeggs Posted May 20, 2022 Share Posted May 20, 2022 I also am looking to hide the video but not the fallback image. Site URL is stevesmobilesecurity.squarespace.com pass: smsisthebest Several of the slides have background videos. Link to comment
tuanphan Posted May 21, 2022 Share Posted May 21, 2022 9 hours ago, clarkbeggs said: I also am looking to hide the video but not the fallback image. Site URL is stevesmobilesecurity.squarespace.com pass: smsisthebest Several of the slides have background videos. You mean top slide video? 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
clarkbeggs Posted May 23, 2022 Share Posted May 23, 2022 Would love to know how to hide the background video for all slides on mobile (but still keep the fallback image) @tuanphan Link to comment
clarkbeggs Posted May 24, 2022 Share Posted May 24, 2022 Hi @tuanphan let me know if that makes sense. Thank you for taking a look. Link to comment
tuanphan Posted May 26, 2022 Share Posted May 26, 2022 On 5/25/2022 at 5:35 AM, clarkbeggs said: Hi @tuanphan let me know if that makes sense. Thank you for taking a look. Add to Design > Custom CSS @media screen and (max-width:767px) { section[data-current-styles*='"backgroundMode": "video"'] iframe { opacity: 0 !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!) Link to comment
5ake5 Posted August 12, 2022 Share Posted August 12, 2022 Site URL: http://www.jakemitchellmiller.com Hi I'm having a similar issue - I have tried various provided codes from different forums with the correct section ID's and haven 't found any luck. In theory I would love to keep the same background video for the mobile version of my site with the frame repositioned so faces aren't cropped out. But if this is not possible I'd be fine with just a static image on mobile the mobile version and video on desktop. Please advise. Link to comment
tuanphan Posted August 13, 2022 Share Posted August 13, 2022 17 hours ago, 5ake5 said: Site URL: http://www.jakemitchellmiller.com Hi I'm having a similar issue - I have tried various provided codes from different forums with the correct section ID's and haven 't found any luck. In theory I would love to keep the same background video for the mobile version of my site with the frame repositioned so faces aren't cropped out. But if this is not possible I'd be fine with just a static image on mobile the mobile version and video on desktop. Please advise. Use this CSS code @media screen and (max-width:640px) { body.homepage .Parallax-item:first-child iframe { width: 100% !important; height: auto !important; left: 0 !important; } section#welcome { min-height: unset; height: 200px; } body.homepage .Parallax-item:first-child figure { bottom: 0 !important; } } jjohansson 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!) 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