Jump to content

Change the website logo on the homepage only

Go to solution Solved by tuanphan,

Recommended Posts

@tuanphan So the homepage has a white version of the logo so it's visible on the dark background, but the rest of the website won't have a dark background. Can you help me add CSS that only shows the white logo on the homepage and I can have the rest of the website with the darker logo. I placed the other logo on the homepage so you can easily see and grab for the coding.

Website url: https://cat-trout-7kzz.squarespace.com/home
password: password

Screenshot 2024-03-18 at 7.03.56 PM.png

Screenshot 2024-03-18 at 7.03.59 PM.png

Edited by nicki-patsios
More information
Link to comment
  • Replies 1
  • Views 643
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

To change logo on Homepage Only, use this code to Website > Website Tools > Custom CSS. Replace Pixbay with your new logo url

body.homepage header#header img {
    content: url(https://cdn.pixabay.com/photo/2023/06/13/11/45/landscape-8060760_1280.jpg);
}

 

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

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.