Jump to content

Need help making logo redirect to another website

Recommended Posts

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
Link to comment
  • Replies 1
  • Views 282
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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)
🗓️ 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

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.