WordPress.org

Ready to get started?Download WordPress

Forums

WP Search Suggest
[resolved] Doesn't work for searchform in the widget (5 posts)

  1. kravallle
    Member
    Posted 3 years ago #

    the suggestions are only shown in the search field in the header, but not for the searchfield widget (sidebar). is it possible to include that as well?

    http://wordpress.org/extend/plugins/wp-search-suggest/

  2. Konstantin Obenland
    Member
    Posted 3 years ago #

    Hey kravallle,

    you could add another jQuery call and change the selector to the add the functionality to the second input field.
    Have a look at /js/wpss-search-suggest.dev.js as reference.

    Cheers

  3. web559
    Member
    Posted 3 years ago #

    Right: it works if you change #s in the js to whatever the ID of your search form is.

  4. ronthai
    Member
    Posted 3 years ago #

    Wow, thanks for the above. Now I got it working with SuperSearch (adds category dropdown to choose from where to search).
    The hardest part was to find the ID of the search plugin (well for me, just learned something again today)

    Thanks and regards, Ron

  5. kravallle
    Member
    Posted 3 years ago #

    thanks a lot. that change is pretty easy.

    if someone uses the function get_search_form() also twice in his template, changing the id of one of the two search forms works best with this workaround:
    https://codex.wordpress.org/Function_Reference/get_search_form#Notes

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic