Adding search field to wordpress site

Wanted to add a search field to my homepage site. Got a great start referencing this article

https://wedevs.com/133739/add-search-bar-in-wordpress/

Scroll down to the manual section to see what i referenced

get_search_form()

Oops!!!

When I perform a search, The search bar shows up twice. Good thing wordpress api has a “is_search” method to check if we are on a search page

Leave a Reply

Your email address will not be published.