Forums Forums Search & Filter Pro Ajax refresh

Tagged: 

Viewing 10 posts - 1 through 10 (of 11 total)
  • Anonymous
    #245950

    Hi there,

    I have some troubles to get the ajax display working properly. That’s the first time I use Search & Filter Pro so I guess it’s a classic configuration issue, but after 2h I can’t find out the problem.

    I’m working on a simple blog where I need to display an archive of articles from different categories with the ability to filter the articles by categories with a select dropdown. So I set up S&F plugin following the indications from https://searchandfilter.com/documentation/search-results/as-an-archive.

    – In Display results, I’ve set As an archive
    – In the filename of the template I’ve set archive.php
    – Load results using Ajax is checked
    – I’ve set .articles-grid as container for ajax results
    – I’ve embed the generated shortcode on my page

    On the front-end, after selecting one of the category, the page refresh and display the archive.php template. My aim is to update the content of the ‘.articles-grid’ staying on the same page.

    What do I miss?

    Thank by advance for your help.
    Jeremy

    Trevor
    #246030

    If the search works without Ajax, there is a good chance that the Ajax container needs to be changed from the #main (WordPesss) default setting in our form.

    Are you able to send me a live link/URL to your search page so I can take a look?

    Anonymous
    #246036

    Hi Trevor,

    Thanks for your reply. Please find here a link to access the page.

    Anonymous
    #246039

    If the search works without Ajax, there is a good chance that the Ajax container needs to be changed from the #main (WordPesss) default setting in our form.

    I’m not sure to understand… I’ve already set .articles-grid as container for ajax results. Do I have to change it to a div with #main ID?

    Anonymous
    #246043

    Ok I’ve updated the parameters into S&F plugin with #main as target but the page keeps refreshing instead of update the #main div contents 🙁

    Trevor
    #246045
    This reply has been marked as private.
    Anonymous
    #246089
    This reply has been marked as private.
    Anonymous
    #246099
    This reply has been marked as private.
    Trevor
    #246285
    This reply has been marked as private.
    Anonymous
    #246508
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 11 total)