Squarespace 7.1 - Linking navigation folder to first item in the folder in Customize with code Posted June 25, 2020 On 6/18/2020 at 6:14 PM, lahero said: @snorkelcookislands - just do the following steps (the script is taken from @RyanDejaegher). Get the slug you assigned to your folder (e.g. "/folder") Add the following script to how @RyanDejaegher mentioned: Settings -> Advanced -> Code Injection -> Footer <script> (function() {window.addEventListener("load", function () { var tours = document.querySelector('[href="FOLDER SLUG COPIED FROM STEP 1"]'); tours.addEventListener("click", function () { window.location = "PAGE SLUG OR FULL URL"; }); })} )(); </script> 3. Replace "FOLDER SLUG COPIED FROM STEP 1" with your slug copied from step 1 🙂 Make sure you leave the double quotes there. 4. Replace "PAGE SLUG OR FULL URL" with whatever page slug you want! Make sure you leave the double quotes there. This solution worked for me! Thanks @RyanDejaegher for the inspiration. Worked perfectly, thank you! theresa.southern 1
Squarespace 7.1 - Linking navigation folder to first item in the folder
in Customize with code
Posted
Worked perfectly, thank you!