Jump to content

Blocking video from loading in mobiles

Recommended Posts

  • Replies 2
  • Views 218
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Chatgtp gave me some help, the code stopped the video from playing on mobiles but the fallback image doesn't work.  Any ideas?

@media screen and (max-width: 767px)

{ .sqs-video-background-native { display: none; } .sqs-video-background .sqs-video-background-content { background-image: url('https://images.squarespace-cdn.com/content/v1/63bd1a87022f9326886b0c89/1673547661941-EXML5DKFZUAGEPXM7K50/sunrise-caveman.jpg');

background-size: cover;

background-position: center center;

background-repeat: no-repeat; } }

.sqs-video-background-native__fallback-image { display: none; }

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.