Jump to content

Adding a header image to individual product pages

Go to solution Solved by tuanphan,

Recommended Posts

Hi there!

I was wondering if there's a way to add a header image to individual product pages? Right now the background and header on these pages are white—which is fine for the body, but it doesn't work for the header because my logo is white, and I also just want a bit more color on the page. 

Site URL: www.saltandstarspress.com/shop (then click on any product)

Thanks so much!

Tory

Screen Shot 2023-02-26 at 5.15.33 PM.png

Edited by torz123
Needed to add better tags.
Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

Add to Design > Custom CSS

body[class*="type-products"].view-item header#header {
    background-image: url(https://images.squarespace-cdn.com/content/v1/63b5ed5e58d111590903192a/1675045798337-L6JIEQJ1X5MNT60CQZ96/unsplash-image-z7rzbFHXym0.jpg?format=original);
    background-size: cover;
    background-repeat: no-repeat;
}
body[class*="type-products"].view-item header#header .header-nav-item *, body[class*="type-products"].view-item header#header span, body[class*="type-products"].view-item header#header svg {
    color: white;
}

 

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
On 3/3/2023 at 1:42 PM, torz123 said:

@tuanphan is there a way to add a header image for the cart page, too? Thank you!

Use this new code

body[class*="type-products"].view-item, body#cart {
header#header {
    background-image: url(https://images.squarespace-cdn.com/content/v1/63b5ed5e58d111590903192a/1675045798337-L6JIEQJ1X5MNT60CQZ96/unsplash-image-z7rzbFHXym0.jpg?format=original);
    background-size: cover;
    background-repeat: no-repeat;
}
header#header .header-nav-item *, header#header span, header#header svg {
    color: white;
}
}

 

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

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.