brooklineartscenter Posted December 8, 2021 Share Posted December 8, 2021 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! Beyondspace 1 Link to comment
Beyondspace Posted December 9, 2021 Share Posted December 9, 2021 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 tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
brooklineartscenter Posted December 20, 2021 Author Share Posted December 20, 2021 It seemed like a wanted to work but it just redirected to the 404 page. I appreciate you trying! Any other ideas? Link to comment
tuanphan Posted December 25, 2021 Share Posted December 25, 2021 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment