Pagination not working (ajax/js conflict)

Home Forums Calendar Products Events Calendar PRO Pagination not working (ajax/js conflict)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1011706
    Nicholas
    Participant

    Hello!

    I have a list view and the pagination links are not working. The permalink in the url is correct, but it appears that some javascript is blocking the link from working. I’m assuming it is preventing default in order to load the page through ajax.

    This is a theme integration, so if there is not an easy way to fix the js conflict, is there a way to disable the ajax loading for pagination altogether? I would rather the link just work as it is supposed to.

    #1011793
    Brook
    Participant

    Howdy Nicholas!

    That should be possible. I am sorry this is giving you a hassle. We actually are going to remove that JS soon and just use proper permalinks as your currently are.

    In the mean time you could simply rename the css class applied to that element. If you create a theme override for pthe-events-calendar/src/views/list/nav.php, and replace these two lines with a different CSS class of your choosing it should disable any JS that applies to those links:

    24:<li class="<?php echo esc_attr( tribe_left_navigation_classes() ); ?>">
    31:<li class="<?php echo esc_attr( tribe_right_navigation_classes() ); ?>">

    You have probably read this already, but you can easily override that template by following our Themer’s Guide.

    Does that all make sense? Will that work for you?

    Cheers!

    – Brook

    #1012117
    Nicholas
    Participant

    Thanks for the help!
    And good move on removing the js dependencies. 😉
    Looking forward to that.

    #1012144
    Brook
    Participant

    Me too! I have long been an advocate of basic things working without JS but many on the team felt it wasn’t worth the effort. Recently though we hired a strategist who sees like you and I. 🙂

    You’re welcome. Let us know if you ever need anything else.

    • Brook
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Pagination not working (ajax/js conflict)’ is closed to new replies.