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

  1. kravallle
    Posted 5 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?


  2. KOB
    Posted 5 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.


  3. web559
    Posted 5 years ago #

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

  4. ronthai
    Posted 5 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
    Posted 5 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:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Search Suggest
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic