Editing the Custom Search form in WP

Create a php file named searchform.php in theme folder and add the following content :

<form role=”search” method=”get” class=”search-form” action=”<?php echo home_url( ‘/’ ); ?>”>
<span class=”screen-reader-text”>Search for:</span>
<input type=”search” title=”looking for something?” name=”s” value=”” placeholder=”looking for something?” class=”search-field”>
<input type=”submit” value=”Find!” class=”search-submit”>

For more see this : https://wordpress.org/support/topic/editing-the-search-widget-1



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s