LetterAndInk Posted January 12 Share Posted January 12 As the title suggests, I'd like to change the color of the logo on the project pages, but not the portfolio page. As it stands, it seems like the page header code injection affects the portfolio and project pages, with no way to separate them out. I'm using the following code: <style> .header-title-logo img { visibility: hidden; } .header-title-logo a { background-image: url(https://images.squarespace-cdn.com/content/65a0493c0ac23a500b538521/1231deef-3f2b-45d9-80d7-e7132dd00e9a/ears+up+logo+white.png?content-type=image%2Fpng); background-size: cover; background-repeat: no-repeat; background-position: center center; } </style> Is there a way to isolate this to the projects but not the portfolio index? Link to comment
sorca_marian Posted January 12 Share Posted January 12 Yes, it can be done with custom code. Please send the links to the pages you want to have a different logo 👨🔧👨💻 Squarespace plugins 🙋♂️ Squarespace Custom Web Development & Design Services 📅 Todoist alternative | Increase your Productivity 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 300 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn Link to comment
Solution paul2009 Posted January 12 Solution Share Posted January 12 (edited) 54 minutes ago, LetterAndInk said: As it stands, it seems like the page header code injection affects the portfolio and project pages, with no way to separate them out. @LetterAndInk You should be able to limit it to the subpages by adding the .view-item class. For example, something like this: .view-item .header-title-logo img { visibility: hidden; } .view-item .header-title-logo a { background-image: url(https://images.squarespace-cdn.com/content/65a0493c0ac23a500b538521/1231deef-3f2b-45d9-80d7-e7132dd00e9a/ears+up+logo+white.png?content-type=image%2Fpng); background-size: cover; background-repeat: no-repeat; background-position: center center; } Did this help? Please give feedback by clicking an icon below ⬇️ Edited January 12 by paul2009 yubrajs and LetterAndInk 2 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. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
yubrajs Posted January 13 Share Posted January 13 You can target the project main page by adding class ".view-list" before the class ".header-title-logo" and for project individual pages by adding class ".view-item". Link to comment
LetterAndInk Posted January 17 Author Share Posted January 17 @paul2009 This did the trick! Thanks so much. paul2009 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