richtman Posted February 24, 2021 Share Posted February 24, 2021 Site URL: https://shopthebreak.com Hello, I need help making my header fully transparent. I want the logo and navigation to be visible while the background is transparent. However, my homepage is a products page, and I can't figure out how to code the header as ALWAYS transparent. Right now its transparent for about a second before it take on the site's background color. Link to comment
Solution tuanphan Posted March 1, 2021 Solution Share Posted March 1, 2021 Add to Design > Custom CSS /* Home transparent */ body.homepage .header-announcement-bar-wrapper, body.homepage header#header { background: transparent !important; } richtman 1 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
GabbyE Posted March 1, 2021 Share Posted March 1, 2021 Hi there, 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
tuanphan Posted March 3, 2021 Share Posted March 3, 2021 On 3/2/2021 at 12:07 AM, GabbyE said: Hi there, 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; } Can you share link to your site? 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
richtman Posted March 4, 2021 Author Share Posted March 4, 2021 Thank you so much! The first code was perfect because i only wanted it only my homepage (the main shopping page). It doesn't work on the product pages themselves, but personally I don't need it to! Link to comment
tuanphan Posted March 7, 2021 Share Posted March 7, 2021 On 3/5/2021 at 3:29 AM, richtman said: Thank you so much! The first code was perfect because i only wanted it only my homepage (the main shopping page). It doesn't work on the product pages themselves, but personally I don't need it to! To apply on product page, add this to Product Page Header <style> .header-announcement-bar-wrapper, body.homepage header#header { background: transparent !important; } </style> 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
mvorozco16 Posted May 25, 2022 Share Posted May 25, 2022 Hi @tuanphanSame question here! How can I make the mobile header transparent? Right now its black. Website: www.luciarodriguezc.com pass: Lucia0987 Thanks! Link to comment
tuanphan Posted May 26, 2022 Share Posted May 26, 2022 14 hours ago, mvorozco16 said: Hi @tuanphanSame question here! How can I make the mobile header transparent? Right now its black. Website: www.luciarodriguezc.com pass: Lucia0987 Thanks! Use this CSS @media screen and (max-width:640px) { body.homepage .Mobile-bar.Mobile-bar--top { background-color: transparent !important; position: absolute; left: 0; width: 100%; z-index: 9999; } body.homepage main.Index>section:first-child { padding-top: 50px; }} 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
Create an account or sign in to comment
You need to be a member in order to leave a comment