AntonyO Posted September 12, 2023 Share Posted September 12, 2023 Hi, I am looking to change the logo link in the cart page specifically. I have managed to do this on various other pages using PAGE HEADER CODE INJECTION in 'Advanced', however, I believe I may need further code for adding this to #cart via the CSS. Here is the code I have been using in the PAGE HEADER CODE INJECTION for the other pages that I have successfully changed. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(document).ready(function() { $(".header-title-logo a").attr("href", "https://bravehero.com"); }); </script> Thanks in advance. Antony Link to comment
AntonyO Posted September 13, 2023 Author Share Posted September 13, 2023 Anybody any ideas on this please? Link to comment
tuanphan Posted September 15, 2023 Share Posted September 15, 2023 You can add code to Site wide Code Injection (Settings > Developer Tools > Code Injection > Footer) with this code (I added cart id) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(document).ready(function() { $("body#cart .header-title-logo a").attr("href", "https://bravehero.com"); }); </script> 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!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment