Jump to content

Differnt logo different pages

Recommended Posts

Posted

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?

 

Anna

 

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

Pw HiThere123

 

  • Replies 6
  • Views 926
  • Created
  • Last Reply
Posted

Add to Page Settings > Advanced > Header

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

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

  • 2 weeks later...
Posted

The ones I added the code to - actually that is untrue. It is the portfolio pages - the actual portfolio pages - AND the pages that hold the list of the projects...

 

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.