Forums Forums Search & Filter Pro Results not working when empty – Elementor

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #210865

    Hello,

    I am using Elementor post widget and the fitler works but when i filter where i know the output is empty it shows the previous posts. Is there a way to show no posts when i filter to an empty category?

    Thanks
    Dieter

    Trevor
    #210883

    It is Elementor that controls what happens in a no results found situation. I would advise restricting the possibility of this happening by removing any empty results terms from the search form. To do this, in the General settings tab:

    Set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON?

    However, if you have a general text search field, it will always be possible to get no results.

    Anonymous
    #211041

    Hi Trevor,

    Thanks. It works without Ajax. Is there a code we can use to echo some css when the results are empty?

    Trevor
    #211045

    There is not, as that part of the output is handled by Elementor, not Search & Filter.

    Anonymous
    #211049
    This reply has been marked as private.
    Trevor
    #211054
    This reply has been marked as private.
    Anonymous
    #211056
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)