Jump to content

Logo versions

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

This is something you can achieve with some custom code. 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 3 weeks later...

Hi!

I have tried with Carl Johnson tutorial (https://www.youtube.com/watch?v=_3CQd5WGrsI) and with Jason Storey solution, but it is not working...

CARL JOHNSON:

First step:

Home > Settings > Advanced > Page Header Code Injection:

<script>

$(function(){

$(".Header-branding-logo").attr("src","https://static1.squarespace.com/static/5e225b28a8a8f45ef685f4dc/t/5e27321c8ecda6054e787619/1579627036107/SM_LOGOTIPO_INGLE%CC%81S.png");

});

</script>

Second step (Carl Johnson solution):

Settings > Advanced > Code Injection > Header

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>

Second step (Jason Storey solution):

Settings > Advanced > Code Injection > Header

<script> window.onload = function() { document.getElementsByClassName('Header-branding-logo')[0].src = 'https://static1.squarespace.com/static/5e225b28a8a8f45ef685f4dc/t/5e27321c8ecda6054e787619/1579627036107/SM_LOGOTIPO_INGLE%CC%81S.png'; }; </script>

 

Thank you in advance.

Link to comment

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.