Jump to content

Change colour of blog post header

Recommended Posts

  • 2 months later...
  • 1 year later...

Hi @tuanphan

I have a similar issue. I need the headers of my individual blogs to be black as my logo is white, but I also want the titles mentioned below the logo in the header to be seen.  

I used the following code you had given on this blog and it worked but my titles below the logo are missing.

body:not(.homepage) .header-announcement-bar-wrapper.black, body:not(.homepage) header#header {
    background-color: black !important;}

Can you please help me out such that the header background is black but the page titles below the logo in the header are also visible?

Here is my blog page: https://lily-hexaflexagon-ppt7.squarespace.com/blog/lithium-ion-batteries-are-here-to-stay-heres-why

Here is the link to the website: https://lily-hexaflexagon-ppt7.squarespace.com/poweredby

Edited by vmist
Link to comment
On 5/16/2021 at 2:10 PM, vmist said:

Hi @tuanphan

I have a similar issue. I need the headers of my individual blogs to be black as my logo is white, but I also want the titles mentioned below the logo in the header to be seen.  

I used the following code you had given on this blog and it worked but my titles below the logo are missing.

body:not(.homepage) .header-announcement-bar-wrapper.black, body:not(.homepage) header#header {
    background-color: black !important;}

Can you please help me out such that the header background is black but the page titles below the logo in the header are also visible?

Here is my blog page: https://lily-hexaflexagon-ppt7.squarespace.com/blog/lithium-ion-batteries-are-here-to-stay-heres-why

Here is the link to the website: https://lily-hexaflexagon-ppt7.squarespace.com/poweredby

Hi. It looks like you solved this?

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

No. I've not been able to resolve it yet. The title sections below the logo are still not visible. Any way I can fix that? 

Add to Design > Custom CSS

/* blog nav color */
body.collection-type-blog-basic-grid.view-item .header-nav-list * {
    color: white !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
  • 1 year later...

Would you be able to help my make my header visible on each blog post in black?

Adjusting the above code to the correct color only make my "home" and "about" links become visible. I'd like for my title, the "home and "about" buttons and my social to all be visible atop each blog post.

Website: www.MeatballAmericano.com

 

THank you! 

Link to comment
On 8/5/2022 at 2:28 AM, meatballamericano said:

Would you be able to help my make my header visible on each blog post in black?

Adjusting the above code to the correct color only make my "home" and "about" links become visible. I'd like for my title, the "home and "about" buttons and my social to all be visible atop each blog post.

Website: www.MeatballAmericano.com

 

THank you! 

Add to Design > Custom CSS

/* Blog Post Header */
body[class*="type-blog"].view-item a#site-title {
    color: black;
}
body[class*="type-blog"].view-item div.header-nav-item a {
    color: black !important;
}
body[class*="type-blog"].view-item header#header svg {
    fill: black;
}

 

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 8/19/2022 at 12:31 AM, meatballamericano said:

Wonderful.  That worked.  Thank you!

Can we do the same thing for the "about" section as well. Really, I want the title to stick with every page on the site, if possible. 

 

Thanks! 

Edit About Page > Add a Code Block under Image or Text > Paste this code

<style>
  a#site-title {
    color: black;
}
div.header-nav-item a {
    color: black !important;
}
header#header svg {
    fill: black;
}
</style>

 

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

I am having a similar issue for my blog pages, my header has a black gradient throughout the website which looks great with a photo but on the blog pages you cannot add a section of photo above so I am left with an ugly black gradient on a white page. Anybody know a custom code to make the header solid white for blog pages only? os I am open to other solutions. I do not want to make the blog pages black, if like to leave them while. 

This is the website URL right now: https://friendsofthechildrenofvnzla.squarespace.com/

Thank you in advance!

Screen Shot 2022-08-24 at 11.34.09 AM.png

Link to comment
11 hours ago, Creatingspaces said:

I am having a similar issue for my blog pages, my header has a black gradient throughout the website which looks great with a photo but on the blog pages you cannot add a section of photo above so I am left with an ugly black gradient on a white page. Anybody know a custom code to make the header solid white for blog pages only? os I am open to other solutions. I do not want to make the blog pages black, if like to leave them while. 

This is the website URL right now: https://friendsofthechildrenofvnzla.squarespace.com/

Thank you in advance!

Screen Shot 2022-08-24 at 11.34.09 AM.png

Can you share link to blog page? You mean blog list page or individual posts?

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

That didn't seem to work. Error message: Syntax Error on line 5

 

Here is my complete code through CSS:

 

a#site-title:after {
    content: "LIVE THE SWEET LIFE WHEREVER YOU ARE";
    display: block;
  position: relative;
  top: 10px;
  margin-top:-12px;
  margin-bottom:-30px;
    height: 00x;
    font-size:13px;
  font-size:"poppins";
    color: #FFEAE5;
    font-family: headline1;}

.sqs-block-summary-v2 {
.summary-title,
.summary-heading {
font-family: poppins;
font-weight: 600;
font-size: 33px !important;
color: #black;
text-transform: bold;
font-style: regular
} }

h1.entry-title {
    font-family: 'poppins' !important;
  }
#page .content-wrapper {
    padding-top: -20px !important;
    padding-bottom: -0px !important;
    padding-left: 15px !important;
    padding-right: 5px !important;
}
body.homepage .summary-title a, .blog-item-title h1 {
    font-weight: bold !important;
    font-family: poppins !important;}
.blog-masonry {
  padding-bottom: 1px
}
.blog-masonry {
  padding-bottom: 1px
}
/* Blog Post Header */
body[class*="type-blog"].view-item a#site-title {
    color: black;
}
body[class*="type-blog"].view-item div.header-nav-item a {
    color: black !important;
}
body[class*="type-blog"].view-item header#header svg {
    fill: black;
}

<style>
  a#site-title {
    color: black;
}
div.header-nav-item a {
    color: black !important;
}
header#header svg {
    fill: black;
}
</style>

Link to comment
On 8/26/2022 at 12:20 AM, meatballamericano said:

That didn't seem to work. Error message: Syntax Error on line 5

 

Here is my complete code through CSS:

 

a#site-title:after {
    content: "LIVE THE SWEET LIFE WHEREVER YOU ARE";
    display: block;
  position: relative;
  top: 10px;
  margin-top:-12px;
  margin-bottom:-30px;
    height: 00x;
    font-size:13px;
  font-size:"poppins";
    color: #FFEAE5;
    font-family: headline1;}

.sqs-block-summary-v2 {
.summary-title,
.summary-heading {
font-family: poppins;
font-weight: 600;
font-size: 33px !important;
color: #black;
text-transform: bold;
font-style: regular
} }

h1.entry-title {
    font-family: 'poppins' !important;
  }
#page .content-wrapper {
    padding-top: -20px !important;
    padding-bottom: -0px !important;
    padding-left: 15px !important;
    padding-right: 5px !important;
}
body.homepage .summary-title a, .blog-item-title h1 {
    font-weight: bold !important;
    font-family: poppins !important;}
.blog-masonry {
  padding-bottom: 1px
}
.blog-masonry {
  padding-bottom: 1px
}
/* Blog Post Header */
body[class*="type-blog"].view-item a#site-title {
    color: black;
}
body[class*="type-blog"].view-item div.header-nav-item a {
    color: black !important;
}
body[class*="type-blog"].view-item header#header svg {
    fill: black;
}

<style>
  a#site-title {
    color: black;
}
div.header-nav-item a {
    color: black !important;
}
header#header svg {
    fill: black;
}
</style>

Please read the comment again.

image.thumb.png.546b4181f306ba673246fcc138c42e68.png

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.