Jump to content

Changing Hyperlink for Site Logo

Recommended Posts

Site URL: https://brooklineartscenter-gallery.squarespace.com/

Hi,

I am wondering if it's possible to change the hyperlink in the logo to redirect to another website. Sqaurespace has notified me that it is not possible without coding. Unfortunately I am not a coder. Can I please get some guidance on this? 

I would like the site logo to redirect to brooklineartscenter.com INSTEAD of redirecting to the homepage.

Thank you! 

Link to comment
13 hours ago, brooklineartscenter said:

Site URL: https://brooklineartscenter-gallery.squarespace.com/

Hi,

I am wondering if it's possible to change the hyperlink in the logo to redirect to another website. Sqaurespace has notified me that it is not possible without coding. Unfortunately I am not a coder. Can I please get some guidance on this? 

I would like the site logo to redirect to brooklineartscenter.com INSTEAD of redirecting to the homepage.

Thank you! 

Try adding to Your Home > Settings > Advanced > Code Injection > choose the footer

<script>
    (function() {
        window.addEventListener('DOMContentLoaded', () => {
            document.querySelector('.header-title-logo a').setAttribute('href','your url')
        });
    })()
</script>

Change 'Your url' with the url you want to redirect

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 2 weeks later...
On 12/21/2021 at 2:45 AM, brooklineartscenter said:

It seemed like a wanted to work but it just redirected to the 404 page. I appreciate you trying! Any other ideas? 

In above code, you will see this line

Quote
setAttribute('href','your url')

change your url to new url, eg

setAttribute('href','https://google.com')

 

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.