Ajax refresh

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.