Editing the Custom Search form in WP

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( ‘/’ ); ?>”>
<label>
<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”>
</label>
<input type=”submit” value=”Find!” class=”search-submit”>
</form>

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

 

Advertisements

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 )

w

Connecting to %s