Jump to content

Disable Video on Mobile only

Recommended Posts

20 hours ago, Lloydbirch said:

Site URL: https://lloydbirchdrone.co.uk/

Hi all,

I have a video on my home page for desktop viewing, this works perfectly. What I'm looking to do is disable it for mobile and use the fall back image? the quality of the video on mobile is pretty poor compared to desktop viewing.

 

Is this possible? 

 

Any help would be greatly appreciated.

 

Lloyd

Add to Design > Custom CSS

/* 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;
}
}

 

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
14 hours ago, tuanphan said:

Add to Design > Custom CSS

/* 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;
}
}

 

Amazing! Thank you so much! 

Link to comment
  • 1 year later...

Site URL: https://www.jdvcounselingandtherapy.com/

Hi all,

I have the same issue with a video on my home page for desktop viewing, which works on my site perfectly. I'm looking to disable the video for mobile and use the fall back image or image? 

Or, hide the video on one section + show image and show the video on another section + hide image. I saw this solution posted but couldn't figure out the code for my site.

Something like below:

@media only screen and (min-width: 768px) {
  section[data-section-id="6332d1ccb7f71701f90f072e"] {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  section[data-section-id="62616f21a251901291ce8981"] {
    display: none;
  }
}

Any help would be greatly appreciated.

Monica

Edited by moni25
Link to comment
On 1/28/2023 at 9:58 PM, moni25 said:

Site URL: https://www.jdvcounselingandtherapy.com/

Hi all,

I have the same issue with a video on my home page for desktop viewing, which works on my site perfectly. I'm looking to disable the video for mobile and use the fall back image or image? 

Or, hide the video on one section + show image and show the video on another section + hide image. I saw this solution posted but couldn't figure out the code for my site.

Something like below:

@media only screen and (min-width: 768px) {
  section[data-section-id="6332d1ccb7f71701f90f072e"] {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  section[data-section-id="62616f21a251901291ce8981"] {
    display: none;
  }
}

Any help would be greatly appreciated.

Monica

Hi,

You mean this fallback image?

image.png.806aae8604aa3122c2aad5c5a3b5326e.png

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
On 2/5/2023 at 5:15 AM, moni25 said:

Yes, hide the video on one section + show image and show the video on another section + hide image you be the best option for me.

 

Which section you want to hide video?

And which section you want to hide image?

 

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

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.