Jump to content

How to change header logo on one page

Recommended Posts

  • Replies 8
  • Views 2.4k
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)
58 minutes ago, danim said:

I need to change the header logo from black to white (new image) for only 1 page on our website. How do you do this?

https://valcollective.com/services

Screenshot 2024-03-25 at 3.52.04 PM.png

1. Firstly you would need to add the white logo to the custom files section. 

image.png.2452f8d9fd6ec0215e2002b4d96d609e.png



2. Once uploaded, click on the logo you've just uploaded to the custom files and below in the Custom CSS area a url will show

image.png.b6fdc94ce1e152d9480239e468583fc3.png

 

3. You need to cut/copy that url and paste it somewhere safe, such as a word doc or notepad etc.

 

3.5 Don't press save at the top of the custom CSS page when done with the url

 

4. Then you need to navigate to that one page open up the settings and go to advanced 

image.png.e7d94355d84c98ceecd0eaf5fac2496c.png

 

5. Next we need to enter this code in the Page Header Code Injection box (like image above);

<style>
header#header img {
    content: url(paste your url here);
}
</style>

6. Now we need to grab the url from the word doc or notepad and paste it where it says in the code paste your url here

 

7. Now press save and refresh.

image.png

Edited by justinjamesclack
Rewording for clarification
  • 3 months later...
Posted

Hi, I'm trying to use an alternate logo on my homepage (Miller template, Brine family) and have tried everything I can find on here with no luck. Can anyone help me out?

Posted
On 6/30/2024 at 5:33 AM, Protoregimoto said:

Hi, I'm trying to use an alternate logo on my homepage (Miller template, Brine family) and have tried everything I can find on here with no luck. Can anyone help me out?

Can you share url? We can help easier

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!)

Posted

Yes exactly. If you notice the logo I use in the footer, it's the reverse to be used for black backgrounds. That's the one I want for the homepage header only, but it's not as simple as inverting the colors. I have a separate file for each with adjusted textures. Thanks for your help!

 

www.regijacob.com

PW: Takoma

Posted
10 hours ago, Protoregimoto said:

Yes exactly. If you notice the logo I use in the footer, it's the reverse to be used for black backgrounds. That's the one I want for the homepage header only, but it's not as simple as inverting the colors. I have a separate file for each with adjusted textures. Thanks for your help!

 

www.regijacob.com

PW: Takoma

You can use this code to Custom CSS box

body.homepage header.Header img, body.homepage div.Mobile img {
    content: url(https://images.squarespace-cdn.com/content/v1/595e996cb8a79bda85f2ffdc/f9f35753-7cf5-4196-8424-1ffd57709dd6/r_bug_invert%402x.png?format=300w);
}

 

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!)

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.