Jump to content

Transparent Header At All Times

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution

Add to Design > Custom CSS

/* Home transparent */
body.homepage .header-announcement-bar-wrapper, body.homepage header#header {
    background: transparent !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Hi there,

I have used both of the code below to make my header transparent, but it's only working on the homepage. How can I make it so the header is transparent on all pages? Currently when I scroll on my inner pages, the block colour behind my logo and nav is still there. Image attached.

/* homepage header transparent */
.homepage header#header {
    background: transparent;
}

 

/* Home transparent */
body.homepage .header-announcement-bar-wrapper, body.homepage header#header {
    background: transparent !important;
}

 

Screenshot 2021-03-01 at 18.03.09.png

Link to comment
On 3/2/2021 at 12:07 AM, GabbyE said:

Hi there,

I have used both of the code below to make my header transparent, but it's only working on the homepage. How can I make it so the header is transparent on all pages? Currently when I scroll on my inner pages, the block colour behind my logo and nav is still there. Image attached.

/* homepage header transparent */
.homepage header#header {
    background: transparent;
}

 

/* Home transparent */
body.homepage .header-announcement-bar-wrapper, body.homepage header#header {
    background: transparent !important;
}

 

Screenshot 2021-03-01 at 18.03.09.png

Can you share link to your site?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 3/5/2021 at 3:29 AM, richtman said:

Thank you so much! The first code was perfect because i only wanted it only my homepage (the main shopping page). It doesn't work on the product pages themselves, but personally I don't need it to! 

 

To apply on product page, add this to Product Page Header

<style>
  .header-announcement-bar-wrapper, body.homepage header#header {
    background: transparent !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 year later...
14 hours ago, mvorozco16 said:

Hi @tuanphanSame question here!

How can I make the mobile header transparent? Right now its black.

Website: www.luciarodriguezc.com

pass: Lucia0987

Thanks!

Use this CSS

@media screen and (max-width:640px) {
body.homepage .Mobile-bar.Mobile-bar--top {
    background-color: transparent !important;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 9999;
}
body.homepage main.Index>section:first-child {
    padding-top: 50px;
}}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.