Jump to content

CSS for Blog page header to carry font and color from main header

Recommended Posts

Site URL: http://sf.su.se

Hi! 

I have a page that I'm managing: http://sf.su.se 

Template: Nueva

 

The header is great, however when going into a blog post, the header background didn't carry over, it just became a white background. I found a css to make the background the correct color: 


/* blog post header background */
.collection-type-blog.view-item header.Header.Header--bottom {
    background: #030c29;}

 

The only problem now is that the navigation text in the header is invisible! I want it to be white, like on the main page. And the dropdown to be the same blue with white links, but I can't figure out how to do this! 

https://www.sf.su.se/nyheter/2021/nystyrelse 

 

 

 

Link to comment
  • Replies 5
  • Views 295
  • Created
  • Last Reply

Top Posters In This Topic

On 8/15/2021 at 12:21 AM, tuanphan said:

Hi. Add to Design > Custom CSS

body.collection-type-blog.view-item .Header-nav-item {
    color: white;
}

 

Hi!

 

Thank you! This made the text show up in white, however, the  menu dropdown still has a white background. Do you know the code to change the dropdown to blue and the dropdown text to become white? 

Link to comment
On 8/16/2021 at 3:30 PM, tika said:

Also, the header padding and font weight remains different from the main page. 

Hi. Use this

body.collection-type-blog.view-item .Header-nav-item {
    color: white;
}
body.collection-type-blog.view-item .Header-nav-folder {
    background-color: #030c29 !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.