Jump to content

How can i change the logo link destination - JASPER Template

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

First, head to Design > Style Editor and make sure "Enable Ajax Loading" is unchecked. If Ajax is enabled, the code won't work.

Then, head to Settings > Advanced > Code Injection and add the jQuery library to the Header section if it's not there already. You can add it by pasting this snippet in:


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

Below that, in the footer section, we'll add the snipped that changes the link destination by pasting in:


<script>
$("img[alt='N\'fellows']").parent().attr("href", "/collective/");
</script>

Save your changes and test it out. Let me know how it goes.

In the future, please don't tag other users in your questions. Thanks!

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.