k8pq Posted December 7, 2023 Posted December 7, 2023 https://www.kinsmenjournal.com/ I currently have a landing page set-up for the url of my website that required the user to "click to enter". Once you're into the website's "home page" (www.kinsmenjournal.com/home) I'm wanting to set the logo in the navigation to take you back to the www.kinsmenjournal.com/home url upon clicking and not the landing page (kinsmenjournal.com). Is this possible?
Ziggy Posted December 8, 2023 Posted December 8, 2023 Try adding this to the Footer Code Injection: <!-- Redirect Site Title Logo --> <script> document.querySelector('a#site-title').setAttribute('href', '/home'); </script> Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
k8pq Posted December 8, 2023 Author Posted December 8, 2023 @Ziggy Thanks for the reply. Unfortunately that did not work for me. Ziggy 1
Ziggy Posted December 8, 2023 Posted December 8, 2023 Sorry that didn't work for you, it worked perfectly in my testing. Can you confirm where you placed the code on your website? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
k8pq Posted December 8, 2023 Author Posted December 8, 2023 @Ziggy For sure. I placed it in the site wide footer code injection. Is anything about the code changing for my specific site?
tuanphan Posted December 9, 2023 Posted December 9, 2023 Currently the site use Logo Image, not Text, so I guess you @Ziggy need to change a#site-title to .header-title-logo a, .header-mobile-logo a Ziggy 1 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!)
k8pq Posted December 11, 2023 Author Posted December 11, 2023 Yes, @tuanphan that worked. Thanks to you both! This is what I ultimately used and it worked: <!-- Redirect Site Title Logo --> <script> document.querySelector('.header-title-logo a, .header-mobile-logo a').setAttribute('href', '/home'); </script> tuanphan 1
Emma_23 Posted August 6 Posted August 6 Hello, Thank you for sharing this! It worked perfectly for desktop but not for mobile? https://www.agonyecstasygallery.com/ is the landing/'splash' page but I would love the header navigation logo to link to https://www.agonyecstasygallery.com/01-home on both mobile and desktop. I used the code: <!-- Redirect Site Title Logo --> <script> document.querySelector('.header-title-logo a, .header-mobile-logo a').setAttribute('href', '/01-home'); </script> Can anyone help? Thanks so much! Emma
tuanphan Posted August 10 Posted August 10 On 8/6/2024 at 4:42 PM, Emma_23 said: Hello, Thank you for sharing this! It worked perfectly for desktop but not for mobile? https://www.agonyecstasygallery.com/ is the landing/'splash' page but I would love the header navigation logo to link to https://www.agonyecstasygallery.com/01-home on both mobile and desktop. I used the code: <!-- Redirect Site Title Logo --> <script> document.querySelector('.header-title-logo a, .header-mobile-logo a').setAttribute('href', '/01-home'); </script> Can anyone help? Thanks so much! Emma Use this <!-- Redirect Site Title Logo --> <script> document.querySelector('.header-title a').setAttribute('href', '/01-home'); </script> 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment