Jump to content

Redirect Header Logo to an external URL instead of the Squarespace homepage

Recommended Posts

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

We are moving to a site not using the Squarespace templates and are retaining legacy blog and podcast bages within the Squarespace templates.  All redirects are working with the exception of the legacy logo continuing to direct to the Squaresapce home page instead of the externally hosted home page.  Can this be accomplished with javascript in theheader of the Squarespace template?  A sample script would be greatly appreciated.

Link to comment
  • Replies 1
  • Views 328
  • Created
  • Last Reply

Add to Home > Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('.navbar-brand').attr('href','https://beaverhero.com');
});
</script>

Replace with new 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

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.