How to Add Search Bar to Home Screen in WordPress

Photo of author

By Oluwaseun Bamisile

Published

Do you want to add a search bar to the home screen of your WordPress site? This guide offers various ways to accomplish that.

Option 1: Add Search Bar to Home Screen via the Widget Panel

Most WordPress themes offer widgets, including a search widget. Hence, using the search widget in the widget panel, you can easily add a search bar to the home screen of your WordPress site.

To accomplish that, observe the following procedures below.

  1. Sign in as an administrator to the backend dashboard of your WordPress website. Then, hover your mouse on Appearance on the left pane and select Widgets from the displayed options.
  1. Following that, click the Toggle block inserter button at the top left corner of the Widgets page.
Add Search Bar To Home Screen In WordPress Via The Widget Panel
  1. After that, input “search” in the search field.
  1. Then, drag and drop the Search widget from the search result to an area on your WordPress site where you want to add the search bar. I will add the search bar to the Header area of our website for this demonstration.
It is important to note that some themes won’t provide an option to add a widget to certain areas on your WordPress site.
Add Search Bar To Home Screen In WordPress Via The Widget Panel
To customize the search bar, ensure the search widget is selected, then click the Settings icon at the top right corner of the page. Hence, you will be able to customize the search bar by using the options in the Block tab.

You can also customize the search bar using the toolbar on top of the search widget.
  1. Finally, click the blue Update button at the top right of the page to save the change. Thus, the search bar should appear on the home screen as well as every other page of your WordPress site.
Add Search Bar To Home Screen In WordPress Via The Widget Panel

Option 2: Add Search Bar to Home Screen Through WordPress Block Editor

Another way to add a search bar to your WordPress site’s home screen is by using the search block in the default WordPress block editor. Moreover, this method is quite similar to the method discussed in the previous section.

That said, follow the procedures below to add a search bar to your WordPress site’s home screen via the WordPress block editor.

  1. As an administrator, sign in to the backend of your WordPress website. Next, click Pages among the menus on the backend’s left pane.
Add Search Bar To Home Screen In WordPress Through WordPress Block Editor
  1. After doing that, select the title of your website’s home page to open it. In this case, the title of our website’s home page is “Create your website with blocks.”
To easily identify the home page, look out for a page labeled “Home” or “Front Page.”
  1. When your website’s home page opens, click the Toggle block inserter button at the top left corner of the page.
Add Search Bar To Home Screen In WordPress Through WordPress Block Editor
  1. Following that, input “search” in the search field that appears.
  1. Now, drag and drop the Search block from the search result to a suitable area on the home page where you wish to add the search bar.
Add Search Bar To Home Screen In WordPress Through WordPress Block Editor
To customize the search bar, ensure the search block is selected, then click the Settings icon at the top right corner of the page. Hence, you will be able to customize the search bar by using the options in the Block tab.

You can also customize the search bar using the toolbar on top of the search block.
  1. Finally, click the blue Update button at the top right corner of the page to save the change.
Add Search Bar To Home Screen In WordPress Through WordPress Block Editor

Option 3: Add Search Bar to Home Screen Using a Plugin

Interestingly, you can also add a search bar to your WordPress site’s home screen by using a plugin. Although many plugins can do that, we will focus on the Custom Search by BestWebSoft plugin in this section.

This free plugin allows users to add a search bar to a specific page or post on WordPress with a shortcode. Hence, in the first sub-section below, I will provide steps to install and activate the Custom Search by BestWebSoft plugin in WordPress.

Meanwhile, the second sub-section will demonstrate how to use this plugin to add a search bar to the home screen in WordPress.

Step 1: Install and Activate Custom Search By BestWebSoft Plugin

  1. Sign in to your WordPress site’s backend as an administrator. Next, hover your mouse on Plugins on the left pane, then left-click Add New from the displayed options.
  1. After doing that, input “Custom Search by BestWebSoft” in the search field on the Add Plugins page.
Add Search Bar To Home Screen In WordPress Using A Plugin
  1. Following that, click the Install Now button of the Custom Search by BestWebSoft – Advanced WordPress Search Bar Plugin from the search result.
  1. After installing the plugin, click the Activate button to enable it on your WordPress site.
Add Search Bar To Home Screen In WordPress Using A Plugin

Step 2: Add Search Bar to Home Screen Using the Custom Search by BestWebSoft Plugin

  1. After activating the plugin, ensure you’re signed in to your WordPress site’s backend as an admin. Then, click Custom Search among the menus on the backend’s left pane.
  1. On the Custom Search Settings page, copy the shortcode in the Custom Search Shortcode box. You can also customize the search bar on the Custom Search Settings page.
Add Search Bar To Home Screen In WordPress Using A Plugin
  1. After copying the shortcode, click Pages on the left pane of the backend’s dashboard.
  1. Afterward, open the home page of your WordPress site by clicking the home page’s title. In this case, the title of our website’s home page is “Create your website with blocks.”
To easily identify the home page, look out for a page labeled “Home” or “Front Page.”
Add Search Bar To Home Screen In WordPress Using A Plugin
  1. When the home page opens, paste the shortcode you copied in step 2 into a preferred area on the home page.
  1. Finally, click the Update button at the top right corner of the page. Hence, if you preview or access the home page from your site’s front end (live website), the shortcode should appear as a search bar – see the second screenshot.
Add Search Bar To Home Screen In WordPress Using A Plugin

Frequently Asked Questions

1. Should I add a search bar to my website?

To improve the functionality and user-friendliness of your website, it is important to add a search bar.

2. Does a search bar have a button?

Yes, search bars are mostly accompanied by a search button. The search button is usually indicated by a magnifying glass icon and is used to submit the search.

However, the search button may sometimes be omitted. This is because users can press the enter key to submit a search rather than using the search button.

3. Is the search box and search bar the same?

Yes, a search box and a search bar are totally the same things.

4. Should a search bar be on the left or right?

The search bar is mostly on the right side of a website’s page. Nonetheless, putting the search bar on the left side wouldn’t cause any issues or affect user experience.

However, ensure the search bar is in an area on your WordPress site that visitors can easily spot it.

5. Does WordPress have a search block?

Yes, the WordPress block editor offers a search block.

Conclusion

Adding a search bar to the home screen enhances the user-friendliness and functionality of your WordPress site. To give more details, it allows visitors to navigate your site easily, which can lead to improved engagement.

Gladly, this guide illustrated three ways to add a search bar to the home screen of your WordPress site. Specifically, we discussed executing this task via the widget panel.

This guide also provided steps to perform this task using the search block in the WordPress block editor. That’s not all; I also included procedures to add a search bar to the home screen in WordPress with the aid of a plugin.

That being said, I hope you found this guide helpful. If you did, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Reply” form at the bottom of this page.

Finally, visit our WordPress & Websites How-To page for more helpful WordPress guides.

About the Author

Photo of author

Oluwaseun Bamisile

Oluwaseun is the Lead Content Editor at Itechguides.com. He holds a National Diploma in Computer Science (currently studying part-time for his Higher National Diploma). An internet geek with a love for automobiles, he writes product reviews, tech articles, and how-to guides on the site.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend