emersonfielkecreative Posted January 26, 2023 Share Posted January 26, 2023 (edited) Hi guys! Just wondering if anyone knows how to change the logo on different pages? I've got a white logo at the moment, which works for all the other pages, except the Product pages. I don't want to change the logo to a white box behind a black logo, it would ruin the look of the site! Does anyone know? Thank you! My client's website is https://www.raindropon26.com.au/ Password: raindrop2023 Edited February 13, 2023 by emersonfielkecreative update Link to comment
Solution Ziggy Posted January 26, 2023 Solution Share Posted January 26, 2023 You can use CSS to invert the logo on certain pages. Add this to the page header code injection on the pages you want it reversed: <style> .header-title-logo img {filter: invert(1);} </style> Or use this CSS with collection IDs: #item-63bba57656086f6c6f308fab { .header-title-logo img { filter: invert(1); } } The CSS works for this page: https://www.raindropon26.com.au/shop/p/gift-card You can find the page collection IDs like this: https://squarefortytwo.com/squarespace-guides/find-an-id-in-squarespace-71 Let me know if that works for you, and give me a thumbs up here if you can, thanks! emersonfielkecreative 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
emersonfielkecreative Posted January 28, 2023 Author Share Posted January 28, 2023 Oh my gosh you are amazing, thank you so much!! I tried with the mobile view however, and that didn't seem to work. Is there another code for that? This and variations of it aren't quite right: /* Gift Card logo */ #item-63bba57656086f6c6f308fab { .header-title-logo img { filter: invert(1); } @media screen and (max-width: 767px) {.header-title-logo img { filter: invert(1); } } } What can be updated for that to work? Thank you! Link to comment
Ziggy Posted January 30, 2023 Share Posted January 30, 2023 If you want to do both desktop and mobile on the same page use these instead: Add this to the page header code injection on the pages you want it reversed: <style> .header-title-logo img, .header .header-title--use-mobile-logo .header-mobile-logo img {filter: invert(1);} </style> Or use this CSS with collection IDs: #item-63bba57656086f6c6f308fab { .header-title-logo img, .header .header-title--use-mobile-logo .header-mobile-logo img { filter: invert(1); } } Let me know if that works. tuanphan and emersonfielkecreative 1 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
emersonfielkecreative Posted January 31, 2023 Author Share Posted January 31, 2023 It sure did work! Thank you so much 🙏🏼 Ziggy 1 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