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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.