km-rh Posted October 10 Share Posted October 10 Hi, I'm trying to link my logo to an external site, opening in the same window. Please can someone help as all the code I have found on this forum so far isn't working. Thank you. Link to comment
Ziggy Posted October 10 Share Posted October 10 Have you tried this? What version of Squarespace are you using? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
km-rh Posted October 10 Author Share Posted October 10 yes tried that and it just links back to the homepage i'm afraid Link to comment
Ziggy Posted October 10 Share Posted October 10 Can you share your website URL and version of Squarespace. Can you also post here exactly what code you added to your footer code injection. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
km-rh Posted October 10 Author Share Posted October 10 website url is https://journal.ronherman.com https://reed-coconut-rs8b.squarespace.com and the version is 7.1 The footer code injection has nothing in it at the moment. Thanks in advance 🙂 Link to comment
km-rh Posted October 10 Author Share Posted October 10 forgot to add the code im using is: <script> /* Desktop branding - redirect to another URL */ document.querySelector('.header-display-desktop .header-title-logo a').setAttribute('href', 'https://www.ronherman.com'); /* Mobile branding - redirect to another URL */ document.querySelector('.header-display-mobile .header-title-logo a').setAttribute('href', 'https://www.ronherman.com'); </script> Link to comment
Ziggy Posted October 10 Share Posted October 10 15 minutes ago, km-rh said: forgot to add the code im using is: <script> /* Desktop branding - redirect to another URL */ document.querySelector('.header-display-desktop .header-title-logo a').setAttribute('href', 'https://www.ronherman.com'); /* Mobile branding - redirect to another URL */ document.querySelector('.header-display-mobile .header-title-logo a').setAttribute('href', 'https://www.ronherman.com'); </script> You have this code in the Footer Code Injection? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? 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