mphdesign Posted June 27, 2023 Posted June 27, 2023 (edited) I'd like my header to go from transparent to white on scrolling, like this example: https://www.norlha.com. Is this possible? Edited June 27, 2023 by mphdesign wrong url
tuanphan Posted June 28, 2023 Posted June 28, 2023 What is your site url? We can check easier 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!)
mphdesign Posted July 7, 2023 Author Posted July 7, 2023 (edited) Hi, it's www.porfiriogutierrez.com. I have it set to a nav bar with white background for now, but would like a transparent one with white text that converts on scroll to a solid white background with black text, as in the norlha.com example. Edited July 7, 2023 by mphdesign
tuanphan Posted July 9, 2023 Posted July 9, 2023 On 7/8/2023 at 6:37 AM, mphdesign said: Hi, it's www.porfiriogutierrez.com. I have it set to a nav bar with white background for now, but would like a transparent one with white text that converts on scroll to a solid white background with black text, as in the norlha.com example. Add this code to Design > Custom CSS body.homepage article section:first-child { padding-top: 0 !important; } body.homepage header#header:not(.shrink) .header-background-solid { background-color: transparent !important; opacity: 0 !important; } body.homepage header#header:not(.shrink) a { color: white !important; } body.homepage article section:first-child .content-wrapper { padding-top: 0 !important; } 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!)
mphdesign Posted July 12, 2023 Author Posted July 12, 2023 (edited) I'm noticing the transparent overlay doesn't work on mobile and the logo doesn't show. The main menu also doesn't show up when you click on the hamburger. Do you have a solution for this? Edited July 12, 2023 by mphdesign
tuanphan Posted July 15, 2023 Posted July 15, 2023 On 7/12/2023 at 7:21 AM, mphdesign said: I'm noticing the transparent overlay doesn't work on mobile and the logo doesn't show. The main menu also doesn't show up when you click on the hamburger. Do you have a solution for this? Hi, It looks fine to me 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!)
christie Posted January 24 Posted January 24 On 7/9/2023 at 4:57 AM, tuanphan said: body.homepage article section:first-child { padding-top: 0 !important; } body.homepage header#header:not(.shrink) .header-background-solid { background-color: transparent !important; opacity: 0 !important; } body.homepage header#header:not(.shrink) a { color: white !important; } body.homepage article section:first-child .content-wrapper { padding-top: 0 !important; } Can we do this for all pages? Not just the homepage...
tuanphan Posted January 28 Posted January 28 On 1/25/2024 at 2:47 AM, christie said: Can we do this for all pages? Not just the homepage... Just remove body.homepage from the code christie 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment