tridon Posted May 1, 2023 Posted May 1, 2023 (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 May 1, 2023 by tridon
tuanphan Posted May 4, 2023 Posted May 4, 2023 What is your site url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment