satflo Posted December 7, 2023 Posted December 7, 2023 I have read here in the forum about the ability to add some custom script to ensure a darker or light logo displays on specific pages. And I tried to follow along with this (it's a big problem for me!) I usually try to get around this by just change the color style on the page in question, which isn't ideal. I'd much rather have a dark/light logo. But on the shopping card page it's a BIG problem. Not the look I want to give customers the moment before they decide whether or not to part with their hard-earned dollars. I can't access (or haven't found how to) the shopping cart page, though. Is it possible to display a different logo with CSS there?
paul2009 Posted December 7, 2023 Posted December 7, 2023 What is the site URL? It isn't included by default when you post. 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.
satflo Posted December 7, 2023 Author Posted December 7, 2023 https://www.flofoundations.com/cart Oh, sorry! Here you go!
VIDDIY Posted January 2 Posted January 2 I'm having the same issue. I need to display a darker version of our logo on the cart page. On the other pages where I needed to do this, I used the code injection option on each page, uploaded a custom logo file and then used this code: <style> div.header-title-logo a { content:url("https://static1.squarespace.com/static/6511b36581531d4b1fda9b04/t/6544f034ca9ecb0c11d9cf11/1699016756930/viddiy-logo.png") !important; max-height: 50px; } </style> It works great on individual pages, but I can't figure out a way to use this same code/logo file on the cart page. It would also be great to use it on the checkout page as well. For now I have a black banner behind the logo, but I'd rather have it be a white background with the black/red logo, as seen on the booking page below. I've attached screenshots for reference. The main theme logo is white and red, but I need to display the black and red version over certain pages that have a white background. Thanks for any help!
AlexSan Posted January 2 Posted January 2 @VIDDIY, I don't believe you are allowed to insert code into the checkout at all for security reasons. If the check out needs the black and red logo, I would make it the main theme logo and then use code on the pages that need the white and red logo. VIDDIY 1
justin.mabee Posted January 2 Posted January 2 Seconded what @AlexSan said! I actually had to do this for a client recently (dingsmotionusa.com) and I was in the middle of changing everything manually with code as much as I could but then got stuck. Then realized I could just change the theme. So I set everything up via the theme and changed it on that page, and voila! AlexSan and VIDDIY 1 1
VIDDIY Posted January 2 Posted January 2 Is there a way to have these changes show up on mobile view as well? Now that I've modified the logo header in the theme, the custom css to make it all work on desktop doesn't seem to be working on mobile...
VIDDIY Posted January 3 Posted January 3 NVM, I realized that it's because I needed to remove the mobile logo file in the header and let it copy what the desktop is doing. AlexSan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment