Jump to content

how to disable video background in mobile view

Recommended Posts

Posted (edited)

Hi there, 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. I would like to use fallback image on mobile view. Thank you. 

http://www.4ufitness.co.nz/

Edited by 4ufitness
Posted

You can use this to Website Tools (under Not Linked) > Custom CSS

@media screen and (max-width:767px) {
section[data-section-id="65149deb31749714176dc2a2"] {
	video {
		visibility: hidden !important;
}
.section-border img {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !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!)

Posted
12 hours ago, tuanphan said:

You can use this to Website Tools (under Not Linked) > Custom CSS

@media screen and (max-width:767px) {
section[data-section-id="65149deb31749714176dc2a2"] {
	video {
		visibility: hidden !important;
}
.section-border img {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}}}

 

Amazing! It works perfectly. Thank you very much. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.