Jump to content

Different Banner Image on Mobile (and hiding desktop banner)

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://gar-grouper-xgll.squarespace.com/

 

Hello,

I would like to have a different banner picture on my coverpage for mobile 

I tried this code:
 

<style>
@media only screen and (max-width: 780px) {
    #page section:nth-of-type(1) { 
            display: none; 
    } 
  }
@media only screen and (min-width: 781px) {  
    #page section:nth-of-type(2) { 
        display: none !important;
    }
  }
</style>

Unfortunately, the first section (desktop banner) is still shown on mobile - why?


Also, I want both buttons to be black in the mobile version and to reduce the distance in between them (to make the upper button going further down so it won't touch the house) and to make the line under the logo visible like in the desktop version.

And I wonder why there seems to be a shadow box around the logo on mobile view 🤔

Hope you can help me!

 

Bildschirmfoto 2022-09-02 um 17.45.45.png

Edited by ando_337
spelling mistake
Link to comment
  • Replies 1
  • Views 319
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.