Home › Forums › Calendar Products › Events Calendar PRO › Back Button Issue
- This topic has 3 replies, 2 voices, and was last updated 8 years, 1 month ago by
Peter.
-
AuthorPosts
-
February 20, 2018 at 6:35 am #1458559
Peter
ParticipantWe are using a calendar view for all events and a list view for our “masterclass” categories. See ttps://www.theoldrectorygardens.co.uk/events/ for all events and https://www.theoldrectorygardens.co.uk/masterclasses/.
We have a gravity form embedded in most of the events (for people to book the event ). When a user clicks into the single event we want the use to have a back button that takes them back to the original place in the calendar/listing not back to the start.
We have used the following java code embedded in the event post:
function goBack() {
window.history.back();
}This works like the “back button” on a browser going back to the last page. This would work fine normally, but the issue is with the gravity form. If someone submits to book an event you have to click the back button twice, which is confusing. Can someone please help as I have limited technical, php knowlegde.
February 21, 2018 at 11:07 am #1460151Sky
KeymasterHi Peter!
We are limited in the amount of support we can provide for customizations, but I will try to get you pointed in the right direction.
Instead of using javascript to go “back” you could add a button just on events of the “masterclass” category pointed at that URL. You would need to change the element from a button to an anchor with class of “button”, and point the link at https://www.theoldrectorygardens.co.uk/masterclasses/
How are you adding the current button to the template?
You could create a custom single-event template, and use a conditional to check if the current category is “masterclass” and if so, output the button. Or you could insert the markup in each post to get a better placement within the content. You can read more about creating custom templates in our Themer’s Guide.
Please let me know if this helped or if you have any other questions.
Thanks,
SkyMarch 15, 2018 at 9:35 am #1480197Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Back Button Issue’ is closed to new replies.
