• Resolved dimqen

    (@dimqen)


    Hi! Thank you for this awesome plugin. I successfully got the Autocomplete search form working with a shortcode, but now I’m having hard time figuring out why I can’t replace the global WordPress search with the Instant Search.

    I put the default WordPress search bar on the page that’s attached with the help of get_search_form(); function. As the next step I’ve enabled Replace WordPress Search and Replace with Instant Search in plugin settings.

    Btw, if I try to use Instant Search by inserting its shortcode on the page, it works.

    Let me know if there’s any additional information that I could provide.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor digamberpradhan

    (@digamberpradhan)

    Hi @dimqen

    I’ve looked at the page, and I think the problem is that the default classes have been changed on the search-form. Generally speaking the class that is used on search forms is “search-form”, on your implementation we’re finding that it’s “form-search” – which would not trigger the search popup.

    So – please try changing default search form html to have the class “search-form” instead of “form-search”.

    Hope this helps.

    P.S.: Editing via developer tools won’t work.

    Thread Starter dimqen

    (@dimqen)

    Thank you @digamberpradhan! Yeah, it must be it.
    Honestly I have no idea how to find what caused that change, there’s nothing related to this issue in the functions.php, might be some plugin.

    I decided to replace a search icon with an Instant Search popup icon in the navbar (found it on this page), for now it feels like a nice workaround.

    Thanks for your work again.

    Plugin Contributor digamberpradhan

    (@digamberpradhan)

    Hi Again,

    I’m glad it’s working for you even as a workaround.
    The change could be caused by your theme too, can you check searchform.php in the theme – they might have changed it there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default Search Replacement is not working’ is closed to new replies.