Forums › Forums › Search & Filter Pro › DIVI theme with CPT Archive
- This topic has 29 replies, 3 voices, and was last updated 7 years, 8 months ago by Anonymous.
-
Anonymous(Private) March 22, 2017 at 1:50 pm #98627
Ok, I tried yesterday but the point now is a different one because I am using AJAX.
It’s working properly but, when I search for something that doesn’t exist, instead of saying “no results” it remains stuck to the results of the previous search.
You can try it here: https://www.erasmuspeople.com/rooms_and_flats_rome
ThanksRoss Moderator(Private) March 22, 2017 at 2:18 pm #98658Its what I mention, when there are no results there is no ajax container.
So you need to add your ajax container to your no results template.
As mentioned this setting can be found:
your
ajax container
defined in thedisplay results
tab.in S&F admin area.
So this page (which shows no results):
https://www.erasmuspeople.com/rooms_and_flats_rome/?_sf_s=sdfsdf&_sfm_price=960+960
Does not contain the ajax container, so the message can’t be udpated.
Also note, your no results page layout is completely different, so anyone navigating to the link directly:
https://www.erasmuspeople.com/rooms_and_flats_rome/?_sf_s=sdfsdf&_sfm_price=960+960
Will not be able to able to use the search form, perhaps it might be worth considering styling these pages too to match the search area layout – if you are not sure how to do this you will likely need to get in touch with DIVI.
Best
Anonymous(Private) March 22, 2017 at 2:46 pm #98680Hi Ross,
I got it. But in the Display results tab I put the container that Trevor told me and it works good when the search is for something that is there. If I change to #main as before, it doesn’t work.
So I guess that it is correct what Trevor told me to put inside that field.
Is there any other file or something I can modify to show a simple message like “no results were found” instead of the accommodation ads?I know that the no results page is totally different and I’ll try to fix it but the poin is that this search won’t be the only one in the website so.. How can I make it coherent with every search?
Hope I explained myself good.
Thanks -
AuthorPosts