Jump to content

Transparent Headers on Main Nav Pages

Recommended Posts

Site URL: https://tuna-raccoon-f8cp.squarespace.com

I am looking to make several pages in the main nav with transparent headers. I located the code to make the home page transparent, but how can you code other pages? Specifically I want "solutions," "resources," "partners," "about" to have the transparent headers (and potentially other pages) all so that I can keep the solid blue header on product pages, blog pages and staff/team pages (which is many pages so makes more sense to custom code the transparent headers since there are only 4-5 of them). Thanks for any help!

Edited by deziner2010
Link to comment

Which code did you use to create transparent header?

Edit your code to this and add to Page Settings > Advanced > Header

<style>
.header-announcement-bar-wrapper {
    background: rgba(0,0,0,0) !important
}
</style>

If you use Personal Plan, use this code, replace .homepage with Page ID

.homepage .header-announcement-bar-wrapper {
    background: rgba(0,0,0,0) !important
}

How to find Page ID.

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
16 hours ago, tuanphan said:

Which code did you use to create transparent header?

Edit your code to this and add to Page Settings > Advanced > Header


<style>
.header-announcement-bar-wrapper {
    background: rgba(0,0,0,0) !important
}
</style>

If you use Personal Plan, use this code, replace .homepage with Page ID

How to find Page ID.

Thank you for your response. This worked on every page but the blog page. It also made all of the blog posts have a transparent header. Any way around that?

Edited by deziner2010
Link to comment
13 hours ago, deziner2010 said:

Thank you for your response. This worked on every page but the blog page. It also made all of the blog posts have a transparent header. Any way around that?

Can you share link to blog page & a blog post?

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 4 weeks later...
On 4/15/2020 at 7:46 PM, deziner2010 said:
.collection-type-blog-basic-grid.view-list .header-announcement-bar-wrapper {
    background: rgba(0,0,0,0) !important
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 5/13/2020 at 8:51 AM, tuanphan said:

.collection-type-blog-basic-grid.view-list .header-announcement-bar-wrapper {
    background: rgba(0,0,0,0) !important
}

 

Thanks - that did not provide a solution. I still have the transparent blog posts, and now I have a banner on the blog page.

Link to comment
  • 2 years later...

Hi, I'm trying to do something similar and I've tried a few different codes for making my homepage header transparent, but it's just not working. It seems it must be conflicting with one of my other choices.  My nav items are white, as desired, but the homepage header is still not fully transparent.

( Site: otwo.squarespace.com Pw: Help)

Here is the code I borrowed: 

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

/*Change homepage nav-item color*/
.homepage {
.header-nav-item a, .header-nav-folder-item:hover a {
    color: white !important;
}
}

Edited by oekwo
Link to comment
10 hours ago, oekwo said:

Hi, I'm trying to do something similar and I've tried a few different codes for making my homepage header transparent, but it's just not working. It seems it must be conflicting with one of my other choices.  My nav items are white, as desired, but the homepage header is still not fully transparent.

( Site: otwo.squarespace.com Pw: Help)

Here is the code I borrowed: 

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

/*Change homepage nav-item color*/
.homepage {
.header-nav-item a, .header-nav-folder-item:hover a {
    color: white !important;
}
}

Add to Design > Custom CSS

body.homepage article section:first-child {
    padding-top: 0px !important;
}
body.homepage .header-background-solid {
    opacity: 0 !important;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (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.