Jump to content

Assistance with media queries for horizontal view on mobile and iPad

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

5 hours ago, merakiconceptstudio said:

Site URL: http://www.beatnik.squarespace.com

Hi guys! Looking for some assistance changing the background image for horizontal views on both iPad and mobile. Nothing I have seems to be working—rather  just conflicting with other views!

Password: test

 

5 hours ago, merakiconceptstudio said:

Site URL: http://www.beatnik.squarespace.com

Hi guys! Looking for some assistance changing the background image for horizontal views on both iPad and mobile. Nothing I have seems to be working—rather  just conflicting with other views!

Password: test

Try

@media only screen and (max-width: 1024px) and (orientation: landscape) {
  section[data-section-id="61bf5e3bdfb43470c19ad463"]  .section-background img {
    display: none;
  }
  section[data-section-id="61bf5e3bdfb43470c19ad463"]  .section-background {
    background-image: url(https://images.unsplash.com/photo-1593642634443-44adaa06623a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=725&q=80);
    background-repeat: no-repeat;
    background-size: cover;
  }
  
}

Change the image url you mean to apply

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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.