IndusSociety Posted July 23 Posted July 23 Hi! When I scroll through my site, the text in the header remains white but the background changes to black. Is there a solution for when someone starts scrolling, the text changes to black and there is no background color? The background color of my pages is white and when using the navigation while scrolling, you cannot see the text of the subpages. I have attached two screenshots for you to look over. Is there a way to change the text color only when scrolling?
Widle Posted July 24 Posted July 24 Hello @IndusSociety Yes, it is indeed possible to achieve this using custom CSS. I can provide you with the necessary code to assist you. .shrink .header-nav * { color: #000000 !important; } .header img { filter: brightness(50%); /* Darker image when scrolled */ } Widle - Squarespace Website Design Experts Connect - Connect with Email Website - Visit us Ahmedabad, India
IndusSociety Posted July 24 Author Posted July 24 @LoftyDevs-Squarespace thank you! We are almost there. When I enter the code you can no longer see the main header menu as the font color is black. But you can see the sub-pages perfectly. I've attached a screenshot below for your review. What do you suggest as a fix?
IndusSociety Posted August 19 Author Posted August 19 @LoftyDevs-Website-Designer @tuanphan @Ziggy Hello! Just reaching out to see if you can help resolve this issue? I would greatly appreciate it. Thanks!
tuanphan Posted August 20 Posted August 20 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!)
Solution IndusSociety Posted August 20 Author Solution Posted August 20 @tuanphan yes of course. Please see below: https://hawk-heptagon-j8wk.squarespace.com/ Password: Welcome2024
tuanphan Posted August 21 Posted August 21 Don't remove any code in your current code. Use this code to Custom CSS box. header#header.shrink div.header-nav-folder-content { background-color: #000 !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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment