Comments Robert Vajda started the conversationOctober 4, 2021 at 3:30pmHi!When I create a new event, after submiting it loads the calendar.But when I edit an event at frontend, after submitting it stays at the edit page instead of loading the calendar.How can I do that?Thanks! 894Zhivko repliedOctober 5, 2021 at 11:49amHi,Open your theme or child-theme functions.php file and at the bottom add following hook: add_action('wp_footer', function() { ?> <script type='text/javascript'> (function ($) { if (null === document.querySelector('.single-stec_event') || null === document.querySelector('.stec-event-submission-form')) { return; } $(document).on('click', '.stec-builder-form-modal.stec-success .stec-style-button', function () { // REPLACE VALUE WITH YOUR CALENDAR URL var linkToMyCalendar = 'https://link-to-my-calendar-page'; window.open(linkToMyCalendar, '_self'); }); })(window.jQuery); </script> <?php});replace https://link-to-my-calendar-pagewith your actual calendar url Stachethemes DeveloperRobert Vajda repliedOctober 5, 2021 at 12:18pmThanks a lot!!! Sign in to reply ...
Hi!
When I create a new event, after submiting it loads the calendar.
But when I edit an event at frontend, after submitting it stays at the edit page instead of loading the calendar.
How can I do that?
Thanks!
Hi,
Open your theme or child-theme functions.php file and at the bottom add following hook:
replace
with your actual calendar url
Stachethemes Developer
Thanks a lot!!!