Show 'No result found' text on result page

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Show 'No result found' text on result page

This topic contains 3 replies, has 2 voices, and was last updated by

 
Keymaster
2 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23606

    Participant

    Hi,

    I am using ajax search pro plugin. I have used ‘Live load the results on the results page’ option to display result.
    I would like to show ‘No result found’ text on result page if there are no matching results after applying filter. Please let me know how can I do this.
    https://www.aroundpune.com

    Example:
    1)search ‘Lonavala’ in header search.
    2)Click filter button on top right.
    3)Set distance limit in filter above 250km
    4)This should show ‘no result found’ text in result area.

    Thanks in advance!

    #23610

    Hi,

    Well, the plugin cannot really control that, it just prints whatever the theme returns. I think the live loader jQuery selector might be too specific, the no-results template within the theme changes the whole main area. You might have to change it from

    .place-listing-section

    ..to:

    #main

    ..like so: https://i.imgur.com/oZ9WQLS.png
    Using the other one would be better, if the theme printed that in the no-results template file (search.php template). Optimally, that item should be present there, and the plugin would copy it’s contents.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #23611

    Participant

    Hi,

    Thanks for the solution. Worked like a charm!

    #23612
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.