GregR Posted May 22 Posted May 22 Hi, I'm trying to find a code that will change the link you are directed to when you click on my site logo. Right now it takes you back to the marked homepage. But I would prefer it take you to a different page. This is the page it takes you to. https://www.gregoryreidphoto.com/ And would like it to take you to this page instead. https://www.gregoryreidphoto.com/home Thank you! Greg
GregR Posted May 22 Author Posted May 22 @JordyTery Hi Jordy! Thanks for your help and quick response. I just applied the code into the header section and unfortunately it didnt make any changes. It's currently still in there now if you visit the site All my best, Greg
Solution sorca_marian Posted May 22 Solution Posted May 22 (edited) There is a small mistake in the code provided. I updated it. <script> document.addEventListener('DOMContentLoaded', function() { document.querySelector('h1.image a').setAttribute('href', '/home'); }); </script> Edited May 22 by sorca_marian url to make it shorter tuanphan 1 👨🔧👨💻 Squarespace plugins 🙋♂️ Squarespace Custom Web Development & Design Services 📅 Todoist alternative | Increase your Productivity 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 300 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn
GregR Posted May 22 Author Posted May 22 @sorca_marian Amazing! That did it! Thank you both so much, really appreciate it. sorca_marian 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment