Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › the number of searches
This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 4 months ago.
- AuthorPosts
- December 5, 2022 at 4:33 am #40381
Hi,
When using Live Search Triggers, is it possible to show only the number of searches made, instead of showing the posts?December 5, 2022 at 2:16 pm #40399Hi,
Do you mean like showing only the number of results instead of the actual results in the live results window?
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 6, 2022 at 12:25 am #40420Hi,
That’s right.
December 6, 2022 at 4:22 pm #40445Actually, I think it is possible.
There is a feature to show the results information box, which displays the number of results.
To display the results number only, please use this configuration: https://i.imgur.com/Yc39uWr.pngThis is the text on the screenshot for the first field:
Results Count for <strong>{phrase}</strong>: <strong>{results_count_total}</strong>
..and the second:
Results Count: <strong>{results_count_total}</strong>
Then, you also need to hide the search results. For that, some custom CSS code is required. Apply this code to your theme custom CSS field (if it supports it) or use the custom CSS field on the search plugin back-end.
.asp_r .results { display: none !important; }
After that, you should get something like this: https://i.imgur.com/KHtqONp.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 7, 2022 at 2:47 am #40447Excellent! It’s done!
Thank you very much.
“No results!” is what I want to display, so I tried the following selector.
#ajaxsearchprores9_1.horizontal .results .item, #ajaxsearchprores9_2.horizontal .results .item, div.asp_r.asp_r_9.horizontal .results .item{
display: none;
}How do I change the text “No results!”?
I could not find it.Attachments:
You must be logged in to view attached files.December 7, 2022 at 10:03 am #40452You can change the text of that here: https://i.imgur.com/Tkx8WPa.png
Best,
I hope this helps!
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 8, 2022 at 12:57 am #40460Thank you very much.
I got it.December 8, 2022 at 1:04 pm #40462You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.