Jump to content

How to make the header semi-transparent only on mobile view

Recommended Posts

7 hours ago, Poppyseeds said:

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

Hello!

I'm trying to adjust the opacity of the white header on the mobile site.

Tried all sorts of things. Nothing working.

Any ideas?

MOBILE HEADER OPACITY.PNG

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  .header-border {
    background:  transparent !important;
  }

  section:first-child {
    margin-top: 0 !important;
  }
  .header-background-solid {
    background: rgba(255,255,255,0.7) !important;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

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
On 1/16/2022 at 6:02 AM, bangank36 said:

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  .header-border {
    background:  transparent !important;
  }

  section:first-child {
    margin-top: 0 !important;
  }
  .header-background-solid {
    background: rgba(255,255,255,0.7) !important;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

 

IT WORKED PERFECTLY!

See photo...

 

 

882015757_MOBILEHEADEROPACITY_ACTIVE.thumb.PNG.7c49929626197efed9861ceb650a0e55.PNG

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.