KRISSYG Posted March 6, 2023 Share Posted March 6, 2023 (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 March 6, 2023 by KRISSYG forgot url Link to comment
Beyondspace Posted March 6, 2023 Share Posted March 6, 2023 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment