Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Results Page Ordering
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 3 years, 7 months ago.
- AuthorPosts
- November 1, 2019 at 8:34 pm #24499
Hi,
I have setup Ajax Search Pro Plugin on my website. I am having issues with ordering on the actual search results page. If I enable live search I can see the ordering I have setup as well as pages that I have excluded. But if I switch to showing results on a results page they order is messed up and I am seeing results which i have excluded. I have enabled “Override the default WordPress search results”
Please see attached screenshot (live search.png) – as you can see in live search first results are products.
But if I switch to results page you can see order is not the same, first result is Gallery and Pages: https://www.kemiko.com/search/acid+stainYou can test the search here: https://www.kemiko.com/ajax-search-pro/
Also, how can I change the layout and CSS of results page?
Thank You
Attachments:
You must be logged in to view attached files.November 4, 2019 at 10:57 am #24512Hi,
I think the problem is, that there is a mod_rewrite or functional redirection to the results page. I see the plugin trying to redirect to the results page, as https://www.kemiko.com/?s=phrase but it is automatically converted and redirected to https://www.kemiko.com/search/phrase
This causes the query arguments not to pass along, and the override does not kick in. I would suggest trying to change the redirection URL, to custom, and entering this there:
search/{phrase}?asp_custom=1
If there is no further redirection forced by the the .htaccess file, or any othe function, then this may work.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
November 4, 2019 at 8:38 pm #24521You cannot access this content.November 5, 2019 at 3:20 am #24522Also, I replaced the default theme search bar with Ajax Search instance. I have search icon in main menu and on desktop when i click on search icon full search bar shows and there is an “x” on the right to cancel search, but on mobile “x” icon is not visible anymore.
Thank You
November 5, 2019 at 3:18 pm #24541Hi,
The X icon is not visible, because it’s color is set to green, and the search width is hovering over it. I suggest changing the search bar width on mobile devices to a smaller one, like 80% or so, and also changing X icon color to the default white – that should be somewhere in the theme settings.
That URL seems to be correct now, it contains the search override parameters. If it still does not override the results, then the theme might not support that, although it is very hard to tell. If you have any other search plugins active, such as Relevanssi, SearchWP or anything, that could also override the results.
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.