Wp event manager don't support ajax navigation

Wp event manager don't support ajax navigation

Short Intro:

The events plugin doesn't support ajax so my idea was since our problem is it will refresh the page and it goes up instead of staying on the event section so what I did was I added ID to that section so that when it is reloaded we have ID to target.

Problem:

Wp Event Manager does not support ajax pagination.

Solution:

My idea was since our problem is it will refresh the page and it goes up instead of staying on the event section so what I did was I added ID to that section so that when it is reloaded we have ID to target. Added custom javascript (made by Patrecio).

<script>

jQuery("ul.page-numbers > li a").each(function(){
var current_link = jQuery(this).attr("href");
var new_link = current_link+"#eventListing";
jQuery(this).attr("href", new_link);
})

</script>

Note: #eventListing is the id we set to the element. ul.page-numbers is the exact class that wp event plugin use.

Contact details

More solutions

by ilias

You're using JetFormBuilder and want to make sure users are at least 18 years old based on their birthday input.

by ilias

Roweij Spices wanted to have a filter that can choose number of products display per pagination

by ilias

This article will show you how to add dynamic code to your templates using the Elementor Shortcode widget and custom PHP code.