Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
akhaghani

Change logo image on different pages

Question

My logo for my site is white and it doesn't show up on all the pages other then my homepage so I'm trying to find a way to put a color logo on other pages then the home page, http://www.sparkleaders.org/about/

Any help would be very appreciated!

Thanks,Amir

Edited by akhaghani
Initial Revision

Share this post


Link to post

8 answers to this question

Recommended Posts

  • 1

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


<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

Share this post


Link to post
  • 0

Mattvs, this one works for me on Carson.


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


Edited by myerww8

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...