Jump to content

Trying to find a code to change the link my logo takes you to when you click on it?

Go to solution Solved by sorca_marian,

Recommended Posts

Posted

@JordyTery Hi Jordy! Thanks for your help and quick response. I just applied the code into the header section and unfortunately it didnt make any changes. 

 

It's currently still in there now if you visit the site

 

All my best,

Greg

  • Solution
Posted (edited)

There is a small mistake in the code provided.

 I updated it.

<script>
document.addEventListener('DOMContentLoaded', function() {
    document.querySelector('h1.image a').setAttribute('href', '/home');
});
</script>
Edited by sorca_marian
url to make it shorter

 👨‍🔧👨‍💻 Squarespace plugins

🙋‍♂️ Squarespace Custom Web Development & Design Services

📅 Todoist alternative | Increase your Productivity 

📹 Squarespace Tutorials for free - YouTube📹 

💯🚀 I have worked on over 300 Squarespace sites with custom code for over 9 years

🙋‍♂️ Let's connect on LinkedIn

 

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.