GabbyE Posted March 1, 2021 Share Posted March 1, 2021 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; } Link to comment
Comfrey Posted March 2, 2021 Share Posted March 2, 2021 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
tuanphan Posted March 6, 2021 Share Posted March 6, 2021 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; } 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.