Jump to content

Different header video banner for mobile

Recommended Posts

https://tarantula-eagle-c8sz.squarespace.com/stepsurveytest

Password: aps

Thanks in advance with this. I've been trying to have  a separate banner header video play in mobile view and desktop view. 

This is the code I've been using but with no luck:

@media only screen and (max-width: 700px) {
  [data-section-id="66ccb9c8f501485a9b3db8f6"] {
    display: none !xxx;
  } 
}

@media only screen and (min-width: 700px) {
  [data-section-id="66a38deaa873151fbcf8ce2f"] {
    display: none !xxx;
  } 

}

 

 

Any help will be greatly appreciated.

Chris

Edited by APS2
Missed out web address
Link to comment
  • Replies 1
  • Views 345
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

What is the !xxx for? I don't think that looks right, so try this:

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

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

}

I also adjusted the breakpoint so it's at the mobile breakpoint and not overlapping.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.