Jump to content

Change logo image on different pages

Recommended Posts

  • 2 months later...
  • Replies 8
  • Views 7.3k
  • Created
  • Last Reply

You can inject this code onto the page you want to change the logo:

 window.onload = function() {
   document.getElementsByClassName('Header-branding-logo')[0].src = 'URL_TO_IMAGE';  

If you don't want to host the image yourself, you can upload the logo to Squarespace, grab its url, then change the logo to the default one that you want. Then you'll have a url to the Squarespace logo url that you want to inject above, in the form '//static1.squarespace.com/static/ID/t/ID/ID/'.

Co-founder of www.padpiper.com

Link to comment
  • 8 months later...

Mattvs, this one works for me on Carson.

  $(function() {$('#siteHeader').find('img').attr('src', 'https://static1.squarespace.com/static/5a5ec2d9d7bdcef66b1db7a2/t/5abf532e6d2a73e772961e57/1522488114208/Sewn.techLogo_Large.png?format=750w')})

Hey there, my name is Will and I help Squarespace designers and developers with my plugins, tutorials, and my Code Curious Membership
I would be happy to answer any questions you have about Javascript, CSS, or the meaning of life  - I'm an expert in 2 of these. 

Youtube | Website

Link to comment
  • 6 months later...
  • 3 months later...
  • 9 months later...
  • 4 weeks later...


This topic is now archived and is closed to further replies.

  • 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.