Jump to content

Replace Logo Image Per Page?

Recommended Posts

Hello,

I am replace logo on my homepage and other pages, template Eamon. My website to see what I am referring to manmadeatelier.comDo not experience with coding.

Thank you in advance!

Link to comment
  • 1 month later...
  • Replies 34
  • Views 21.9k
  • Created
  • Last Reply
  • 4 weeks later...
  • 4 weeks later...
  • 3 months later...
  • 1 month later...

A more efficient way to do it, without having to inject jQuery:


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

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
  • 3 months later...
  • 2 months later...
  • 5 months later...
  • 4 months later...

Archived

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.