Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Site wide transparent header when scrolling


GabbyE

Question

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

Edited by GabbyE
Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0

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 post
  • 0
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?

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...