Jump to content

Changing header logo on project pages

Go to solution Solved by paul2009,

Recommended Posts

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

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
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 by paul2009

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

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.