Jump to content

Website quicklink buttons not working anymore

Recommended Posts

Posted (edited)

Our site has been up and working since 2020, the code we use for our quicklink buttons on the homepage just stopped working within the last few weeks. Our website can be viewed at www.gymagine.com. This is the code we have been using for 3 years, it has not been changed, but just stopped working:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script> 
   $(document).ready(function() { 
     $('.header-nav-folder-title[href="/classinfo1"]').attr("href", "/classinfo");
     window.addEventListener('load', function(){
       document.querySelector('[href="/classinfo"]').addEventListener('click', function() {
         window.location = "/classinfo";
       })
     })
   }); 
</script>
<script>
$(document).ready(function() { 
     $('.header-nav-folder-title[href="/about1"]').attr("href", "/about");
     window.addEventListener('load', function(){
       document.querySelector('[href="/about"]').addEventListener('click', function() {
         window.location = "/about";
       })
     })
   }); 
</script>
<script>
$(document).ready(function() { 
     $('.header-nav-folder-title[href="/team1"]').attr("href", "/team");
     window.addEventListener('load', function(){
       document.querySelector('[href="/team"]').addEventListener('click', function() {
         window.location = "/team";
       })
     })
   }); 
</script>

Edited by tridon
  • Replies 1
  • Views 214
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

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