Pre-populate search text field

Forums › Forums › Search & Filter Pro › Pre-populate search text field

Tagged: 

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #45316

    How can I populate the search text field with a the string value from a WP default search, i.e. get_search_query() ?

    Trevor
    #45330

    You can do this, but only by editing your theme core files, I think. I have seen a similar request before that Ross has answered (but I cannot recall where). The last person that asked, the user and I figured that the search was a simple theme included search template file and we replaced that with a file named the same that simply called a search and filter form that had only the search field in.

    We then styled it to match the theme’s own search field.

Viewing 2 posts – 1 through 2 (of 2 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.