Results Page Ordering

This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24499
    kemiko23
    kemiko23
    Participant

    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+stain

    You 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.
    #24512
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #24521
    kemiko23
    kemiko23
    Participant
    You cannot access this content.
    #24522
    kemiko23
    kemiko23
    Participant

    Also, 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.

    https://www.kemiko.com

    Thank You

    #24541
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


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

You must be logged in to reply to this topic.