Jump to content

Header Opacity on Homepage

Recommended Posts

If you add the page collection ID in front of the code you've already used, then that will target it to just the one page, like this:

#collection-64073cc33a5f64371d5e7626 {
  body.homepage .header#header {
    background-color: transparent !important;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

You could try adding your original code into the homepage header code injection rather than in Custom CSS.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

No, not in advanced, in the page header code injection (home page settings), and given it's in the header, then you need to add <style> tags and you don't need to collection ID.

<style>
  body.homepage .header#header {
    background-color: transparent !important;
  }
</style>

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

1. For the Header, set the Style to "Dynamic" (see attachment)

2. For the inside pages, inject the following into each page's header. Use whatever color you want the header to be on those pages.

<style type="text/css">
  .header-announcement-bar-wrapper { background-color: yellow; }
</style>

In action (I used a photo instead of a video). Navigate between Home and Page One.

https://sheep-butterfly-4l87.squarespace.com

pw: Header

2.png

Edited by pentool
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.