Here are easy steps to add a search bar to WordPress header. Using the search bar, your site visitors can find what they need in a moment. This post will help you create a search bar in your WordPress site

In most of the WordPress themes, a search box is included by default. But if any theme doesn’t have it or you want to make your own custom search box, you can easily do that too.

how to add search bar in wordpress header
  1. Go to Appearence->editorhow to add search bar in wordpress header
  2. Add the following code to the header.php file.
    <?php get_search_form(); ?>

    how to add search bar in wordpress header

  3. This will bring in searchform.php if it is present in your theme.
  4. This will bring the default search that is built-in WordPress to appear in the header.  The quality of this search is not great.  Continue to read to build a better and faster search experience.
  5. Signup for a free search demo by entering your url.
  6. This will build a search demo.
  7. Download and Install ExpertRec’s WordPress search plugin from here which will replace your default search form with that of Expertrec’s hosted search.
  8. Copy-paste your API key from your ExpertRec’s control panel.how to add search bar in wordpress header
  9. Your new search engine is ready for use.
  10. If you like to change the ranking or the UI, you can do them easily in your control panel.

muthali ganesh

Muthali loves writing about emerging technologies and easy solutions for complex tech issues. You can reach out to him through chat or by raising a support ticket on the left hand side of the page.

You may also like