torz123 Posted February 27, 2023 Share Posted February 27, 2023 (edited) 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 Edited February 27, 2023 by torz123 Needed to add better tags. Link to comment
Solution tuanphan Posted February 28, 2023 Solution Share Posted February 28, 2023 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
torz123 Posted March 3, 2023 Author Share Posted March 3, 2023 That worked perfectly. Thank you so much! Link to comment
torz123 Posted March 3, 2023 Author Share Posted March 3, 2023 @tuanphan is there a way to add a header image for the cart page, too? Thank you! Link to comment
tuanphan Posted March 6, 2023 Share Posted March 6, 2023 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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