WebDesignerVJubes Posted February 20 Posted February 20 My homepage currently look like this (which is how I want it to look like), first picture. However, the rest of my site has the cream color as the background so I want to have the colors in the header swapped to look like (second picture) with the header in the dark wine color and the logo and text in the cream color. I know this is something to do with CSS, I just don't know how to do that. I know I have to set the header to be in the dark variation for the whole site and then add custom CSS to change the colors for just the home page. I was wondering if anyone knows how to do that? Please help a girl out. The color HEX codes are: Cream - #FFF4EA Burgundy - #331719 Thank you!
Web_Solutions Posted February 21 Posted February 21 12 hours ago, WebDesignerVJubes said: My homepage currently look like this (which is how I want it to look like), first picture. However, the rest of my site has the cream color as the background so I want to have the colors in the header swapped to look like (second picture) with the header in the dark wine color and the logo and text in the cream color. I know this is something to do with CSS, I just don't know how to do that. I know I have to set the header to be in the dark variation for the whole site and then add custom CSS to change the colors for just the home page. I was wondering if anyone knows how to do that? Please help a girl out. The color HEX codes are: Cream - #FFF4EA Burgundy - #331719 Thank you! What is the website URL? If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible.
Solution paul2009 Posted February 21 Solution Posted February 21 (edited) 14 hours ago, WebDesignerVJubes said: Change header color on just my home page. I have to set the header to be in the dark variation for the whole site and then [I want to] add custom CSS to change the colors for just the home page. Try this in Custom CSS panel: .homepage [data-header-style="theme"].header { background-color: #FFF4EA; } .homepage :not(.header--menu-open) .header-nav-wrapper a { color: #331719; } .homepage .header-title-logo img { filter: invert(.9); } Example of it being applied: Did this help? Please give feedback by clicking an icon below ⬇️ Edited February 21 by paul2009 WebDesignerVJubes 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
WebDesignerVJubes Posted February 21 Author Posted February 21 Thank you @paul2009!!! It worked!!! You are a lifesaver!!! paul2009 1
WebDesignerVJubes Posted February 21 Author Posted February 21 2 hours ago, paul2009 said: Try this in Custom CSS panel: .homepage [data-header-style="theme"].header { background-color: #FFF4EA; } .homepage :not(.header--menu-open) .header-nav-wrapper a { color: #331719; } .homepage .header-title-logo img { filter: invert(.9); } Example of it being applied: Did this help? Please give feedback by clicking an icon below ⬇️ Hi Paul! One more question. So I did this and it's almost perfect! Except it made my logo black. Is there any way to make the logo the burgundy color? You have been such great help!
paul2009 Posted February 21 Posted February 21 1 hour ago, WebDesignerVJubes said: I did this and it's almost perfect! Except it made my logo black. Is there any way to make the logo the burgundy color? You can't change the colour of an image using CSS so the last part of the code simply inverts the logo color to make it visible. It's a compromise. The only way to make it a specific color us to load another image in place of the existing one. There are a number of ways to do this but first you'd need to add the alternative image to your site and provide a link 🙂. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
WebDesignerVJubes Posted February 22 Author Posted February 22 7 hours ago, paul2009 said: You can't change the colour of an image using CSS so the last part of the code simply inverts the logo color to make it visible. It's a compromise. The only way to make it a specific color us to load another image in place of the existing one. There are a number of ways to do this but first you'd need to add the alternative image to your site and provide a link 🙂. How would I do that? I have the PNG and SVG of the logo in both colors. Thank you again, you have been super helpful.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment