Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Algolia

    (@algolia)

    Hi @robgrafico, thank you for asking 😉

    Correct me if I’m wrong but you would like to disable the autocomplete dropdown on certain search inputs?

    If so, you can simply copy/paste the ‘templates’ folder from the plugin into your theme, and rename it to ‘algolia’.
    Then in the ‘yourtheme/algolia/autocomplete.php’ file you can change jQuery selector to exclude some inputs.

    Let me know if that helps.

    PS: We are also thinking about excluding a certain class by default so that you could simply add a class to inputs you don’t want live search on. Feel free to discuss it here: https://github.com/algolia/algoliasearch-wordpress/issues/334.

    Plugin Contributor rayrutjes

    (@rayrutjes)

    @robgrafico I just released 1.2.0 version of the plugin.

    In that version, you can now simply add the class ‘no-autocomplete’ to an input to disable live search on it.

    Let me know if that is what you needed,

    PS: If you already had copied the ‘templates’ folder to your theme, you might need to re-do that, or copy paste the trick: https://github.com/algolia/algoliasearch-wordpress/pull/336/files

    Cheers,

    ok, perfect. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude live search’ is closed to new replies.