Jump to content

How to get only background image to show on mobile site and video only on desktop background?

Recommended Posts

  • Replies 2
  • Views 150
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

2 hours ago, rp7 said:

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

Hi, I have a video for my landing page background that doesnt play well on the mobile. I've tried codes that people have suggested on other posts but they just show up as the code in the header.. I have set a fallback image which I want for it to show on mobile viewing only. Please help! 

You can try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="6202215effc997353c892dc5"] .sqs-video-background-native__video-player {
    display: none;
  }

  section[data-section-id="6202215effc997353c892dc5"] .sqs-video-background-native__fallback-image--hidden {
    opacity: 1;
  }
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.