In this article, we will see how you can create a custom search form in wordpress using two different methods- by adding code, and not adding code.

Add wordpress search form

Method 1- WordPress custom search form by adding code.

All wordpress sites come with a default search form. Given that you are here, you want to edit the look and feel of your search form- The placeholder, the submit button, size of the search box etc.

You can add a search form by including

 in your wordpress template. 

For creating a custom search form, create a new php file called searchform.php and save it to your themes folder. You can add the following form code to this file.

Method 2- Using WP custom search form wordpress plugin

Add wordpress custom search form

  • Install the custom search form wordpress plugin from here.
  • Go to https://cse.expertrec.com/newuser?platform=wordpress
  • Enter your website URL and initiate crawl.wordpress search form
  • Wait till all your site pages of your website have been crawled.wordpress search form
  • Download expertrec’s search plugin from here
  • In your wordpress admin panel, go to Plugins-> Add New-> Upload pluginwordpress search form
  • Upload expertrec wordpress zip and click install. wordpress search form
  • Click on Activate plugin.wordpress search form
  • In your left panel you must be able to see expertrec’s logo, click on that.wordpress search form
  • Go to https://cse.expertrec.com/csedashboard/home/Status and copy your site ID.wordpress search form
  • Paste your site ID inside your expertrec plugin pagewordpress search form
  • Subscribe to a paid plan (9 USD per month).
  • That’s it, you have added a search form to your website. here is a snapshot.wordpress search form
  • Now you can go to https://cse.expertrec.com/csedashboard/looknfeel/inputbox and here you will be able to style your wordpress search form the way you want it to look.

wordpress search form

Add wordpress search form


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.