Guest Posted September 11, 2020 Share Posted September 11, 2020 Site URL: https://tan-elephant-y8af.squarespace.com/installations Good day, So I am still novice at this and have tried searching the forums, even attempting to modify a code based on the closest result I would like to achieve. It did not work sadly. What I would like to happen, is when a user clicks on a gallery from the /installations or /digital works page the respective /installations or /digital works page remains active while going through the galleries. installation galleries follow the slug /installation-nameofgallery and same for /digital-works-name-of-gallery The website may not be visible, so below is a screen shot for reference (forgive the bad mouse writing) and it is using the Wells Template. Link to comment
Solution Beyondspace Posted September 11, 2020 Solution Share Posted September 11, 2020 You can provide a temp password so we can have a look, thanks Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Guest Posted September 11, 2020 Share Posted September 11, 2020 Hi bangank36, Thank you for responding I was not sure how to provide a temp password, so I messaged you a contributor account that I made. If anyone else would like to look at it, I will send the information to you as well. Link to comment
Guest Posted September 13, 2020 Share Posted September 13, 2020 On 9/11/2020 at 5:44 AM, bangank36 said: You can provide a temp password so we can have a look, thanks Hi bangank36, Thanks again for helping with the answer 😄 Link to comment
Beyondspace Posted September 14, 2020 Share Posted September 14, 2020 <script> document.addEventListener('DOMContentLoaded', function(){ var urlPath = window.location.pathname.split('/')[1]; [].forEach.call(document.querySelectorAll(".main-nav li a[href"), function(el) { el.parentNode.classList.remove("active-link"); }); [].forEach.call(document.querySelectorAll(".main-nav li a[href*="+urlPath+"]"), function(el) { el.parentNode.classList.add("active-link"); }); }, false); </script> Settings -> Advanced -> Custom Code Injection -> Footer Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you 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