Jump to content

Redirect 'Back to all Events link'

Recommended Posts

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
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
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
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?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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.