Jump to content

Site wide transparent header when scrolling

Recommended Posts

Hi there, @tuanphan

I have used both of the code below to make my header transparent, but it's only working on the homepage. How can I make it so the header is transparent on all pages? Currently when I scroll on my inner pages, the block colour behind my logo and nav is still there. Image attached.

/* homepage header transparent */
.homepage header#header {
    background: transparent;
}

/* Home transparent */
body.homepage .header-announcement-bar-wrapper, body.homepage header#header {
    background: transparent !important;
}

Screenshot 2021-03-01 at 18.03.09.png

Link to comment
  • Replies 2
  • Created
  • Last Reply

Hello--

I am by no means an expert at anything with Squarespace, but there is an option (located under "Color") for transparent header when you edit the header (it's a toggle switch at the top).

Additionally, I look at your CSS and it looks like the .homepage and body.homepage would singularly select your homepage as receiving the transparency.

Link to comment
On 3/2/2021 at 12:14 AM, GabbyE said:

Hi there, @tuanphan

I have used both of the code below to make my header transparent, but it's only working on the homepage. How can I make it so the header is transparent on all pages? Currently when I scroll on my inner pages, the block colour behind my logo and nav is still there. Image attached.

/* homepage header transparent */
.homepage header#header {
    background: transparent;
}

/* Home transparent */
body.homepage .header-announcement-bar-wrapper, body.homepage header#header {
    background: transparent !important;
}

Screenshot 2021-03-01 at 18.03.09.png

Hi. Can you share site url?

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.