Jump to content

[Share] Change Header Color on Product Page

Recommended Posts

If you can’t make it work, you can send link to product page, I can check problem easier.

Use these code to Website Tools > Custom CSS.

#1. Header color on Product Shop/Category Page

body[class*="type-products"].view-list {
    header#header {
    background-color: #f1f !important;
}
.header-background-solid {
    opacity: 0 !important;
}}

image.png.ddd1ef5a8862046b14df7434654899f6.png

#2. Header color on Product Details

body[class*="type-products"].view-item {
    header#header {
    background-color: #f1f !important;
}
.header-background-solid {
    opacity: 0 !important;
}}

#3. Header color on Specific Shop Page

Use this code to Shop Page Header Code Injection

<style>
body[class*="type-products"].view-list header#header {
    background-color: #f1f !important;
}
body[class*="type-products"].view-list .header-background-solid {
    opacity: 0 !important;
}
</style>

image.png.864eceecb22b8a3527548855e849ff96.png

#4. Header color on Product Details belong specific Shop Page

Use this code to Shop Page Header Code Injection

<style>
body[class*="type-products"].view-item header#header {
    background-color: #f1f !important;
}
body[class*="type-products"].view-item .header-background-solid {
    opacity: 0 !important;
}
</style>

image.png.631a706f4d6b95695be9995ead1d7163.png

#5. Header color on Specific Product

You can add a Code Block to Additional Info

image.png.cdd3714707280ae7b0f1f6ed5d0956cb.png

then use this code into Code Block.

<style>
header#header {
    background-color: #f1f !important;
}
.header-background-solid {
    opacity: 0 !important;
}
</style>

image.png.9b0228616423f952da5a62b7956215f5.png

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
  • Replies 0
  • Views 156
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

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.