MillyBanks Posted April 15, 2022 Share Posted April 15, 2022 Site URL: http://www.hornbeamtraining.co.uk/courses Hi, I simply want to edit the back to all events link to take customers back to the main course page (anchor link to the #events-calendar section) rather than to the rather ugly page with just the calendar on! Is anyone able to help? Here is one of the events https://www.hornbeamtraining.co.uk/online-events/o0oxsupoddg1u0ihrj44mbcn4shj6h-ww7gr-h6tbf-w3thj-sy2pe-rkjd3-by6yp Thank you in advance!!! Link to comment
Beyondspace Posted April 16, 2022 Share Posted April 16, 2022 22 hours ago, MillyBanks said: Site URL: http://www.hornbeamtraining.co.uk/courses Hi, I simply want to edit the back to all events link to take customers back to the main course page (anchor link to the #events-calendar section) rather than to the rather ugly page with just the calendar on! Is anyone able to help? Here is one of the events https://www.hornbeamtraining.co.uk/online-events/o0oxsupoddg1u0ihrj44mbcn4shj6h-ww7gr-h6tbf-w3thj-sy2pe-rkjd3-by6yp Thank you in advance!!! Try adding to Home > Settings > Advanced > Code Injection, choose Footer <script> (function(){ window.addEventListener('DOMContentLoaded', () => { const backBtn = document.querySelector('.eventitem-backlink'); if(backBtn) { backBtn.setAttribute('href','/yourlink'); } }); })() </script> Let me know how it works on your site BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
MillyBanks Posted April 19, 2022 Author Share Posted April 19, 2022 On 4/16/2022 at 10:45 AM, bangank36 said: Try adding to Home > Settings > Advanced > Code Injection, choose Footer <script> (function(){ window.addEventListener('DOMContentLoaded', () => { const backBtn = document.querySelector('.eventitem-backlink'); if(backBtn) { backBtn.setAttribute('href','/yourlink'); } }); })() </script> Let me know how it works on your site Thanks but unfortunately that didn't work... Ideally I want to take the customer back to here https://www.hornbeamtraining.co.uk/courses#events-calendar via an anchor link but I tried both /online-learning and that link. Any other ideas? 🙂 Link to comment
tuanphan Posted April 22, 2022 Share Posted April 22, 2022 On 4/19/2022 at 7:29 PM, MillyBanks said: Thanks but unfortunately that didn't work... Ideally I want to take the customer back to here https://www.hornbeamtraining.co.uk/courses#events-calendar via an anchor link but I tried both /online-learning and that link. Any other ideas? 🙂 It looks like you figured it out? MillyBanks 1 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