Lorne17 Posted January 29 Share Posted January 29 Hello there, If you go to my site: https://activestatedesigns.squarespace.com/search?q=sunset (password: SiteTest) the header SHOULD be blue (#2C4F6D) like it is on my other pages. But it's white, so my White font in my logo is not seen. How can I fix this for only Search page? Each initial page (before scrolling) the header is invisible except when on hover. It's blue at all other times. Thanks, Lorne Link to comment
Lorne17 Posted January 31 Author Share Posted January 31 Anyone able to help with CSS for this? Link to comment
tuanphan Posted February 3 Share Posted February 3 Add to Settings > Advanced > Code Injection > Footer (DO NOT ADD TO DESIGN > CUSTOM CSS) <script> if (document.location.pathname.indexOf("/search") == 0) { document.querySelector('body').classList.add('t-search') } </script> <style> .t-search header#header { background-color: #2C4F6D !important; } </style> LucyDesigns 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Lorne17 Posted February 3 Author Share Posted February 3 Thanks @tuanphan, super helpful. Last question, how do I get the font and social icons to be white? I tried adding color css to that style code and it didn't work? Link to comment
tuanphan Posted February 8 Share Posted February 8 On 2/3/2023 at 8:28 PM, Lorne17 said: Thanks @tuanphan, super helpful. Last question, how do I get the font and social icons to be white? I tried adding color css to that style code and it didn't work? Add this code under <style> .t-search .header-nav-item a { color: white; } .t-search header#header svg { fill: white; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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