Support

Home Forums Event Espresso Premium Changing "Back To Events List" Button

Changing "Back To Events List" Button

Posted: February 3, 2020 at 11:09 am

Viewing 3 reply threads


twelvetwo

February 3, 2020 at 11:09 am

Hello,

Wondering if it’s possible to change the “Back To Events List” button after customer has added an event to cart? Ideally, we’d like it to take the user back one page to the page they were previously on. (Screenshot below)

Happy to edit template files if needed. Just curious if you could point me in the right direction.

Thanks!

Clay

https://www.evernote.com/shard/s311/client/snv?noteGuid=0b25c9ac-dc8e-4abc-8eeb-2dcec18e7d93&noteKey=b919f885c4e8be2a&sn=https%3A%2F%2Fwww.evernote.com%2Fshard%2Fs311%2Fsh%2F0b25c9ac-dc8e-4abc-8eeb-2dcec18e7d93%2Fb919f885c4e8be2a&title=Pasted%2BImage%2B2%252F3%252F20%252C%2B1%253A04%2BPM


Tony

  • Support Staff

February 3, 2020 at 2:33 pm

Hi there,

You can use a function like this:

https://gist.github.com/Pebblo/844777c4c5be9f647b752f8a9bda50d0

That will either return them to the HTTP_REFFERER page (if set) or the default location (which you could also change in that same function if preferred).

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Josh

  • Support Staff

February 3, 2020 at 2:47 pm

If the above doesn’t quite take the user back one page to the page they were previously on, you could try this variation:

https://gist.github.com/joshfeck/720b555a84de9323678c661b36b4a4b4


twelvetwo

February 3, 2020 at 7:25 pm

Thanks guys! I’ll try it out.

Viewing 3 reply threads

The support post ‘Changing "Back To Events List" Button’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso