Jump to content

Different logo on homepage and rest

Recommended Posts

Site URL: https://www.andrecarvalhobass.com/



I need to have a different logo on my homepage and on the rest of the other pages, because of the contrast between the letters and their background. I saw a similar post on this and tried this code but didnt' work:

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js">
 $(function() {$('.Header-branding).find('img').attr('src', 'https://static1.squarespace.com/static/5f17017bd7769210eef4c5d9/t/5f66771ec9621301a2f619f8/1600550686482/Logo+Black+font.png')})

I'm posting this in a code block on top of one of the pages I need a different logo. What am I doing wrong?



Screenshot 2020-09-20 at 05.18.37.png

Link to comment

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/2019/06/trees-3464777_640-min.jpg');


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

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

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