Created
April 21, 2018 17:02
-
-
Save MrJSdev/8cde88d511bc028b5de6329ee270b3ac to your computer and use it in GitHub Desktop.
This is the code for the guide: http://extracatchy.net/wordpress-search-form-bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form role="search" method="get" class="search-form" id="searchform" action="<?php echo home_url( '/' ); ?>"> | |
<div class="input-group"> | |
<input type="search" id="s" class="form-control search-field" | |
placeholder="<?php echo esc_attr_x( 'Search…', 'placeholder' ) ?>" | |
value="<?php echo get_search_query() ?>" name="s" | |
title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" /> | |
<div class="input-group-append"> | |
<span class="input-group-text"><button type="submit" class="search-button"><i class="fa fa-search"></i></button></span> | |
</div> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment