rossc0 Posted June 18, 2020 Share Posted June 18, 2020 Site URL: http://www.dntl.co.uk Hi all, I'm hoping someone can help. I currently have a Portfolio / Gallery of images on my homepage and I'm trying to get one particular image in that gallery to link to the separate /shop section of my page rather than the current /work/merch which is currently pointing at. If I try to change the Slug in the settings / cog icon. I can only change the 'merch' part. It doesn't allow me select the entire line. If I play around with inspect on Google Chrome, all I need to do is change this: <a class="grid-item" href="/work/merch" id="yui_3_17_2_1_1592494658970_189"> to this: <a class="grid-item" href="/shop id="yui_3_17_2_1_1592494658970_189"> And I get the desired effect, but obviously that's not a permanent change. I've tried, using a extremely basic knowledge of coding, to inject some code but soon found out the YUI constantly changes and can't see a 'block-id' that pertains to this particular image. Is there any way around this? My client doesn't want the site live yet, so apologies that I can't show it. But hopefully I've been clear! Any help, much appreciated. Cheers, Ross Link to comment
RyanDejaegher Posted June 18, 2020 Share Posted June 18, 2020 @rossc0 you can create a sitewide password to share accesshttps://support.squarespace.com/hc/en-us/articles/205815528-Site-wide-passwords Philadelphia, PA 👉 Squarespace Tutorials Chat/Message on FB Messenger for quickest response: https://m.me/dejaegherryan Link to comment
rossc0 Posted June 18, 2020 Author Share Posted June 18, 2020 @RyanDejaegher Thanks Ryan, I've temporarily just removed the password for now. Hope it helps: https://www.dntl.co.uk Link to comment
RyanDejaegher Posted June 18, 2020 Share Posted June 18, 2020 @rossc0 is this the image you're trying to change the URL for? Philadelphia, PA 👉 Squarespace Tutorials Chat/Message on FB Messenger for quickest response: https://m.me/dejaegherryan Link to comment
rossc0 Posted June 18, 2020 Author Share Posted June 18, 2020 @RyanDejaegher Yep, that's the one 🙂 Link to comment
RyanDejaegher Posted June 18, 2020 Share Posted June 18, 2020 @rossc0 what's the page that you're trying to link to instead? Philadelphia, PA 👉 Squarespace Tutorials Chat/Message on FB Messenger for quickest response: https://m.me/dejaegherryan Link to comment
rossc0 Posted June 18, 2020 Author Share Posted June 18, 2020 @RyanDejaegher this one: https://www.dntl.co.uk/shop Link to comment
RyanDejaegher Posted June 18, 2020 Share Posted June 18, 2020 // Add this code to Settings -> Advanced -> Code Injection -> Footer <script> (function(){ window.addEventListener('load', function() { var link = document.querySelector('a[href="/work/merch"]'); link.href = 'https://www.dntl.co.uk/shop'; }) })() </script> rossc0 1 Philadelphia, PA 👉 Squarespace Tutorials Chat/Message on FB Messenger for quickest response: https://m.me/dejaegherryan Link to comment
rossc0 Posted June 18, 2020 Author Share Posted June 18, 2020 @RyanDejaegher absolute hero! Thank you so much, worked a treat 😄 RyanDejaegher 1 Link to comment
JamesRoeser Posted February 17, 2021 Share Posted February 17, 2021 Did this stop working for anyone? 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