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
Beyondspace Posted September 11, 2020 Share Posted September 11, 2020 You can provide a temp password so we can have a look, thanks BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, 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 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.