Home › Forums › WoodMart support forum › No Live search and dropdown category selector in AJAX Search for post
No Live search and dropdown category selector in AJAX Search for post
- This topic has 12 replies, 2 voices, and was last updated 4 years ago by Artem Temos.
-
AuthorPosts
-
April 5, 2020 at 5:08 pm #184694
KHParticipantHello,
April 6, 2020 at 6:11 am #184769
Artem TemosKeymasterHello,
Try to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter( 'woodmart_ajax_search_symbols_count', function (){ return 1; } );
Regards
April 6, 2020 at 7:01 am #184777
KHParticipantNo, it’s not working as you can see in this video http://somup.com/cYf1191keo.
In the video, you can see that when I type “ກ” yes the live search works. But when I type “ກະ” it reloads the page automatically. The live search is not working.
April 6, 2020 at 11:28 am #184854
Artem TemosKeymasterIt is how it works with a single result only. It redirects you directly to that post.
April 6, 2020 at 12:32 pm #184896
KHParticipantok, understood.
– But How can I make only one column of what dis play in the live search as now there’re more than one column, for example, when you type a word in the search box, search word would show up in one column dropdown only.
– How can I show the dropdown category selector in the search like my screenshot explains?
April 6, 2020 at 8:34 pm #184899
Artem TemosKeymaster1. Sorry, but we don’t understand what do you mean. Please, send us some screenshots and words that we should use to test.
2. The category dropdown works for product categories only.
April 7, 2020 at 6:44 am #185048
KHParticipantPlease see the screenshot https://www.dropbox.com/s/d2gako2djiyyov3/4.png?dl=0
One column and one row per post title to display. I mean display in list.April 7, 2020 at 7:48 am #185066
Artem TemosKeymasterTry to use the following CSS code to change these to one column
.search-results-wrapper .autocomplete-suggestion { flex: 1 1 100%; }
April 7, 2020 at 8:08 am #185077
KHParticipantOk now. Just one last thing. How can I remove “View all results”? I want only scrollbar to work for this. When I click on “View all results” it redirects to the post page, it doesn’t load more. So, I don’t want to show the post page of this. That’s why want to remove “View all results”.
April 7, 2020 at 11:08 am #185114
Artem TemosKeymasterTry this code also
.search-results-wrapper .view-all-results { display: none; }
April 8, 2020 at 12:24 pm #185434
KHParticipantGreat! Thanks.
– Could you please add something like “not found” when there’s no such thing users are looking for?
– Will you consider adding the category dropdown feature for post category as well in the next update?
April 8, 2020 at 12:39 pm #185439
KHParticipant– Could you please add something like “not found” when there’s no such thing users are looking for?
This is ok. I’ve found it.
April 9, 2020 at 5:57 am #185571
Artem TemosKeymasterWe are glad that you found it. And thank you for your suggestion. We will consider this as a feature request.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register