Jump to content

Header transparent on some pages, opaque on filtered results pages

Recommended Posts

Site URL: https://www.parboild.com/

I'm using custom code to make my fixed site header transparent when at the top of the page, then opaque as you scroll down.

However, I don't want this on my filtered results pages, because there is no image at the top. Is it possible to make the header always opaque on filtered results pages? Without breaking the transparency on every other page? 

Here's an example of a filtered page: https://www.parboild.com/?author=5cc649a0f4a17f000189897b
I also have them for categories: https://www.parboild.com/blog/category/Quick+snack

 

2075759843_ScreenShot2020-10-27at10_02_56AM.thumb.png.71942bfb3aa82b3b3b1ef0e1e6058630.png

Link to comment
4 hours ago, tuanphan said:

Try adding to Home > Design > Custom CSS



.collection-type-blog-basic-grid.view-list header#header {
    background: red !important;
}

 

This worked great for the filtered results pages, but it broke the transparency on the rest. Is it possible to make it opaque ONLY on the author/category filtered pages?

 

Screen Shot 2020-10-28 at 10.35.28 AM.png

Screen Shot 2020-10-28 at 10.41.33 AM.png

Edited by acid__bat
Link to comment
  • 1 year later...
On 12/15/2021 at 5:50 AM, acid__bat said:

@tuanphan Hello, I never did figure this one out.

How do I get an opaque header ONLY on filtered results pages? 

I have a transparency set up on all other pages, which I like and don't want to mess with. 

Here's an example of my filtered pages: https://www.parboild.com/?author=5cc649a0f4a17f000189897b

Add to Design > Custom CSS

body[class*="collection-type-blog"].view-list header#header {
    background-color: black !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.