Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1023145

    Hi – I’m using a plugin called ProfileGrid to manage and display user profiles. It comes with a customer-facing user directory; a listing of all the users. The listing is paginated, with ajax links to load the contents of the the next page.

    When clicking one of these links, I get redirected to a blank admin page containing only a “0”. https://my-domain.com/wp-admin/admin-ajax.php?pagenum=2

    I contacted the plugin author and they are stating there’s a conflict with something that Enfold is doing. Here’s what they said:

    ProfileGrid plugin uses hyperlinks to load next page data via ajax. In the JS function it uses event.preventDefault() to restrict the page load behaviour of hyperlink. It is still loading the page. It seems like theme is registering callback with each link which is causing this reloading behaviour.

    Is there something I can do to override / prevent this behavior?

    #1023558

    Hey TJ,

    Can you give us the link to the page where it is happening?

    Best regards,
    Victoria

    #1027069

    Hi – Sorry for the delay! This is a private page. I’ve posted login info below.

    #1027146

    Hi TJ,

    Well, the link generated is incorrect, but it’s not Enfold. You might want to look at the plugin docs or support forums.

    Best regards,
    Victoria

    #1027189

    Hi. Thanks for looking at this. I’ve been back and forth with the plugin author many times. I’m pretty sure this is an Enfold issue. It works fine if I remove the theme.

    When the link is clicked, the plugin submits an AJAX POST request to https://www.runnersedgeoftherockies.com/wp-admin/admin-ajax.php with some form data (page_id, pagenum, etc), but before the request completes, Enfold takes the same URL and submits a GET request – which is where the error comes from. How do I prevent Enfold from listening / overriding this link click?

    Thanks!

    TJ

    #1027195

    Some more info…I just disabled Enfold page transitions and now it’s working. What is it about the page transitions that mucks with AJAX requests?

    #1028327

    Hi,

    The theme’s preloader script initiates a browser redirect when you click on a link. You can add the “no-transition” class attribute to that button or link if you want to exclude it from the preloader script.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.