Jump to content

How can I make the site header solid on blog post only?

Recommended Posts

Hello,

I'm building a site using Bedford. I set the site header to transparent. And I removed the header image on blog pages as I didn't like the design.

I used this code for that:
/* don't show thumbnail as banner image behind blog post title (hard to read) */
.collection-type-blog .banner-thumbnail-wrapper {display: none !important;} .collection-type-blog .entry-title {display: block !important;}

But now I can't see the site header or navigation on a blog post page b/c it's white and the background is transparent.

Is there any way to set the background color for the site header for blog posts only (including all future posts)? Or to change the color of the logo and navigation for blog posts only?

Thanks!

Link to comment
  • 3 weeks later...
  • 2 weeks later...

I've been searching everywhere and this is a great solution to the issue @ChrisBartow! I do not know CSS well enough to invert a logo - do you have simple code you'd be willing to share? (It is also not showing the button on our Nav bar, but is showing the other links, weirdly enough).

Thanks!

Link to comment
11 hours ago, SmallBizSidekick said:

Thanks for the code! For some reason, it's not working....  I used it as directed on both the Case Studies blog settings and the Blog settings. (The main blog pages' headers look great, it's just the individual posts).

Would love to hear your thoughts.... Many thanks!

Add to Home > design > Custom CSS

.collection-type-blog.view-item .Header-branding-logo {
    filter: invert(1);
}

 

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

@tuanphan that worked! Thanks so so much.

Any code to do the same for the Contact button?

See it appear: https://www.deatongroupllc.com/blog

And disappear: https://www.deatongroupllc.com/blog/what-all-business-leaders-need-to-hear-right-now

"Contact button" what do you mean?

 

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
20 minutes ago, SBSidekick said:

The button on the top right shows on the main blog header:

 

But not on the individual blog posts

.collection-type-blog.view-item .Header-nav-item[href="/contact"] {
    background: red !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

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.