Jump to content

Differnt logo different pages

Recommended Posts

Site URL: https://avocado-eagle-fehc.squarespace.com

Hi guys,

On some pages I would like a white logo, some a black.

Hoping someone can help. I have an extra colour in my logo, not just black to invert to white. The invert code works great except the orange goes blue which is not good.

I have uploaded the white version to the CSS manage file section, but I cannot get any codes I find around the place to work.


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

Can anyone help out please?





Pw HiThere123


Link to comment
  • Replies 6
  • Views 888
  • Created
  • Last Reply

Add to Page Settings > Advanced > Header

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
  $(document).ready(function() {
	$('.header-title-logo img').attr('src','https://beaverhero.com/wp-content/uploads/2020/05/ss-pricing-table01-min.png');

Replace beaverhero with new logo url.

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