Jump to content

snorkelcookislands

Member
  • Posts

    14
  • Joined

  • Last visited

Posts posted by snorkelcookislands

  1. @lahero Hey, I followed your instructions but it still didn't work.

     

    I changed the code to:

    <script>
      (function()
      {window.addEventListener("load", function () {
        var tours = document.querySelector('[href="/folder"]');
        tours.addEventListener("click", function () {
          window.location = "https://snorkelcookislands.com/book-a-tour";
        });
      })}
      )();
    </script>

     

    What am I doing wrong??

  2. @lahero Hey thanks for that, but it didn't work...

    This is what I injected into the Code Injection Footer

    <script>
      (function()
      {window.addEventListener("load", function () {
        var tours = document.querySelector('[href="/book-a-tour"]');
        tours.addEventListener("click", function () {
          window.location = "https://snorkelcookislands.com/book-a-tour";
        });
      })}
      )();
    </script>

    Have I written something wrong here? Because the parent header "Tours" just links to the first link "Reef Snorkelling"

    @RyanDejaegher Maybe you can help? 🙃

×
×
  • 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.