Hekate Posted October 5, 2022 Posted October 5, 2022 Site URL: https://www.elliotoracle.com Hi everyone! How do you redirect the logo URL for the Five template? I tried several solutions posted on the forums, but none of them seem to work specifically with the Five template. Below is an example of one I tried (replacing URLREDIRECTHERE with the appropriate redirect link). The website in question is elliotoracle.com, if you wouldn't mind taking a look. Thanks! Quote <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script>$(document).ready(function () { $(".logo-image [href]").attr("href", "URLREDIRECTHERE"); }); </script>
Ziggy Posted October 5, 2022 Posted October 5, 2022 Can you share the exact code that you tried, and where you installed it? It looks like you have a non-standard setup which might explain why that code isn't working. 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?
paul2009 Posted October 5, 2022 Posted October 5, 2022 10 hours ago, Hekate said: How do you redirect the logo URL for the Five template? I tried several solutions posted on the forums, but none of them seem to work specifically with the Five template. As you're using the Five template add the following to the Code Injection Footer (instead of the code you quoted above): <script> window.Squarespace.onInitialize(Y, function(){ document.querySelector("#banner-wrapper a").href ="/xyz"; }); </script> where /xyz is the link you wish to use. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Hekate Posted October 6, 2022 Author Posted October 6, 2022 On 10/5/2022 at 9:23 AM, paul2009 said: As you're using the Five template add the following to the Code Injection Footer (instead of the code you quoted above): <script> window.Squarespace.onInitialize(Y, function(){ document.querySelector("#banner-wrapper a").href ="/xyz"; }); </script> where /xyz is the link you wish to use. I appreciate your help; unfortunately, that didn't seem to work. It continues to send users to the default home page. Here is the code that I put into the Footer section as you suggested (and I'll attach a screenshot as well): Quote <script> window.Squarespace.onInitialize(Y, function(){ document.querySelector("#banner-wrapper a").href ="https://tarotpalooza.com/2022/elliot/#ticketDiv"; }); </script>
Hekate Posted October 6, 2022 Author Posted October 6, 2022 On 10/5/2022 at 5:09 AM, Ziggy said: Can you share the exact code that you tried, and where you installed it? It looks like you have a non-standard setup which might explain why that code isn't working. Thank you; the exact code is in the post right about this one. I appreciate you taking a look, too! I am putting it into Settings > Advanced > Code Injection > Footer
paul2009 Posted October 6, 2022 Posted October 6, 2022 2 hours ago, Hekate said: I appreciate your help; unfortunately, that didn't seem to work. Please check the code on your site. You have a "/" character before the https which shouldn't be there. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Hekate Posted October 7, 2022 Author Posted October 7, 2022 17 hours ago, paul2009 said: Please check the code on your site. You have a "/" character before the https which shouldn't be there. Sorry. I tried it without that, and it stil didn’t work . I tried both ways to see if that’s what was causing the issue.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment