jacauschi23 Posted February 1, 2022 Share Posted February 1, 2022 Site URL: https://goldbess2021.squarespace.com/events/defensive-handgun-course-may-3-2022-na438-b999k I have an events page /events that I don't want accessible on the site but use it for a calendar & summary block on /booking. Right now this events page is accessible by selecting an event and then clicking the backlink at the top of the page that says "Back To All Events". I need the backlink to direct to /booking instead of /events to avoid visitors for accessing this page. PW: GB2021! Link to comment
Solution Beyondspace Posted February 1, 2022 Solution Share Posted February 1, 2022 2 hours ago, jacauschi23 said: Site URL: https://goldbess2021.squarespace.com/events/defensive-handgun-course-may-3-2022-na438-b999k I have an events page /events that I don't want accessible on the site but use it for a calendar & summary block on /booking. Right now this events page is accessible by selecting an event and then clicking the backlink at the top of the page that says "Back To All Events". I need the backlink to direct to /booking instead of /events to avoid visitors for accessing this page. PW: GB2021! Try adding to Home > Settings > Advanced > Code Injection, choose footer <script> (function() { window.addEventListener('DOMContentLoaded', () => { const backEventLink = document.querySelector('.eventitem-backlink'); if(backEventLink) { backEventLink.setAttribute('href','/booking'); } }); })() </script> Let me know how it works on your site Support me by pressing 👍 if this useful for you tuanphan and jacauschi23 1 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment