Jump to content

BigAlliance

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by BigAlliance

  1. On 6/18/2020 at 6:14 PM, lahero said:

     

    @snorkelcookislands - just do the following steps (the script is taken from @RyanDejaegher).

     

    1. Get the slug you assigned to your folder (e.g. "/folder")
    2. 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!

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.