This topic has 12 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #215345
     arbolife
    Participant

    Hi, when I seach for example the term “oka” in the ajax button in the menu, it works fine. But if I then click on the “view all results” button, the URL is incorrect.

    https://www.arbolife.com/fr/?s=oka

    It goes to this one:

    https://www.arbolife.com/fr/?s=oka&post_type%5B%5D=gd_restaurant,event,gd_place

    And that goes to a page saying there are no results.

    Thanks,

    Marc

    #215347
     Kieran_SQ
    Moderator

    Hi,

    Thanks for contacting us about the ajax search issue. I’ll refer this directly to one of our developers for review. They’ll be in touch with you as soon as they can, Monday to Friday, East European Time.

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #215350
     arbolife
    Participant

    Here’s the screenshot I forgot to attach.

    #215400
     Radu
    Moderator

    Hi,

    The wired thing if you remove those %5B%5D from https://www.arbolife.com/fr/?s=oka&post_type%5B%5D=gd_restaurant,event,gd_place

    The results will come up.

    https://www.arbolife.com/fr/?s=oka&post_type=gd_restaurant,event,gd_place

    Did you had added some extra spaces or characters before ?

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #215410
     arbolife
    Participant

    Hi Radu,

    No I didn’t add it. You can try yourself on our site and click view all results.

    Cheers,
    Marc

    #215445
     Radu
    Moderator

    Hi,
    Try to add this code into child theme and let me know then if the search will work as it should

    https://pastebin.com/raw/ADBZm3df

    Let me know
    Cheers

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #215485
     arbolife
    Participant

    Hi Radu,

    Thanks, it works perfectly.
    Is this a bug you’ll fix in a future release or do I need to keep this in my child theme for ever?

    Cheers,
    Marc

    #215524
     Radu
    Moderator

    Keep it into child and i will speak with the core developer about this.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #216211
     arbolife
    Participant

    Can we keep this open as long as I need the fix in my child them ?

    Cheers,
    Marc

    #216214
     Kieran_SQ
    Moderator

    Hi Marc,

    I have set this topic to not automatically close as per your request.

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #216288
     Radu
    Moderator

    Hi,

    We had fixed that in core

    Replace this file content : wp-content/themes/kleo/lib/theme-functions.php
    with the content of this one : https://pastebin.com/raw/61xq5yvg

    Also comment the current snippet in child concerning this issue, if all good you can delete it from child.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #216346
     arbolife
    Participant

    Hi Radu,

    Thanks, all is good with this fix. Thank you.
    I’ll close the ticket.

    Cheers,
    Marc

    #216557
     Radu
    Moderator

    Ok
    Cheers
    Have a nice day
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?