Jump to content

Customer CSS for Header Color

Recommended Posts

Site URL: https://brecha.online

Hi! I'm trying to figure out a way to change the color of my header on one specific page of my website (it's black throughout the website and I want to make it yellow on one page). 

I followed this helpful article and was able to find a code snippet that makes the header yellow while I'm on the custom CSS page, but whenever I leave, the live website goes back to the black header. 

Can someone help me figure out where the error is? As mentioned, I would like to ideally add this to a specific page, so if anyone could also recommend how to do this (via unique page id for instance) that would be very much appreciated!
 

.header#header {position: fixed!important;}

.header-nav-folder-content {
   background: #fac124!important;
}

body:not(.tweak-transparent-header) .black .header-announcement-bar-wrapper {
    background-color: #fac124;
}

 

Screen Shot 2020-05-22 at 7.25.49 PM.png

Screen Shot 2020-05-22 at 7.25.26 PM.png

Link to comment
  • Replies 4
  • Created
  • Last Reply

If you use Business Plan, add to Page Settings > Advanced > Header

<style>
  .header-announcement-bar-wrapper {
    background: red !important;
}
</style>

If you use Personal Plan, add Code Block > Insert above code

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
7 hours ago, gambreu said:

@tuanphan Thank you so much, that worked beautifully!! 

Do you also know how to set a custom color for the button in the header on that particular page?

Which plan do you use? Personal or Business

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

@tuanphan Persona, but I actually managed to do it by adding this code block on that particular page:

<!--Navigation bar-->
<style>
.header-announcement-bar-wrapper {
    background: #fac124!important;
    color: #fac124!important;
  }
</style>

<!--Navigation dropdown-->
<style>
.header-nav-folder-content {
   background: #fac124!important;
   color: RGB(0,0,0)!important;
</style>

<!--Button color-->
<style>
.btn.btn--border.theme-btn--primary-inverse {
   background: RGB(0,0,0)!important;
   color: #fff;
} 
</style>

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.