Jump to content

header problem

Go to solution Solved by tuanphan,

Recommended Posts

Posted (edited)

In my homepage,https://www.ssi.com.hk/ I used a photo background in the section below the header, and I want a wide photo, so I turn the header "color->adaptive", which make the header transparent and show the below section photo.

 

image.thumb.png.a201406f6251e7ff0834b978093ca7f3.png

But, my other pages header also show the below section color, which i dont want.

I want other pages header are "color->solid".

image.thumb.png.be7081b4914886ee81c430cf9e4b18f6.png

 

Or, to be simple, how can i make the header color white expect the homepage? Thank you so much.

 

 

 

Edited by keith17300
Link to comment
  • Solution

You can use this to Website Tools > Custom CSS

body:not(.homepage) header#header {
    background-color: #fff !important;
}
body:not(.homepage) header#header div.header-nav-item>a {
    color: #000 !important;
}
body:not(.homepage) span.current-language-name {
    color: #000 !important;
}
body:not(.homepage) header#header a.btn {
    background-color: #000 !important;
    color: #fff !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!)

Link to comment
Posted (edited)
On 8/6/2024 at 3:12 PM, tuanphan said:

You can use this to Website Tools > Custom CSS

body:not(.homepage) header#header {
    background-color: #fff !important;
}
body:not(.homepage) header#header div.header-nav-item>a {
    color: #000 !important;
}
body:not(.homepage) span.current-language-name {
    color: #000 !important;
}
body:not(.homepage) header#header a.btn {
    background-color: #000 !important;
    color: #fff !important;
}

 

Thank you so much. Its works!

Furthermore, may i ask that, how can i make all the pages with blue color (hex,#358ECA) on the top of the header (pink arrow in the photos)? thank you so much.

Thank you for your kind reply. Good luck. Good heal.

example page:

https://www.ssi.com.hk/

&

https://www.ssi.com.hk/products/cleanroomhongkong

 

WhatsApp Image 2024-08-08 at 12.32.13.jpeg

WhatsApp Image 2024-08-08 at 12.32.25.jpeg

Edited by keith17300
Link to comment
2 hours ago, keith17300 said:

Furthermore, may i ask that, how can i make all the pages with blue color (hex,#358ECA) on the top of the header

Please see this thread:

Did this help? Please give feedback by clicking an icon below  ⬇️

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.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
Posted (edited)
1 hour ago, paul2009 said:

Please see this thread:

Did this help? Please give feedback by clicking an icon below  ⬇️

Thank you so much. Its works. I used below code from your shared link.

<meta name="theme-color" content="#fff">
Edited by keith17300
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.