Jump to content

Need help making logo redirect to another website

Recommended Posts

Posted (edited)

I would like to make the logo of this website (https://www.iladdinc.org) redirect to another website when it's clicked on. I've already tried inserting the following in code injection (header). It's not working. Wondered if there is another code or another way to do this? 

The site is using Brine for the last 3 years.

Edited by KRISSYG
forgot url
  • Replies 1
  • Views 422
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted
12 hours ago, KRISSYG said:

I would like to make the logo of this website (https://www.iladdinc.org) redirect to another website when it's clicked on. I've already tried inserting the following in code injection (header). It's not working. Wondered if there is another code or another way to do this? 

The site is using Brine for the last 3 years.

You can try adding to Home > Settings > Advanced > Code injection, choose footer

<script>
  (function(){
    const logos = document.querySelectorAll('[data-nc-element="branding"]')
    logos.forEach( logo=> {
      logo.setAttribute('href','your URL here');
    })
  })()
</script>

Support me by pressing 👍 or marking as solution if this is useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

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.