Created
April 12, 2022 14:41
-
-
Save searchwpgists/2886943adea8a12d3873d7346b68d5a3 to your computer and use it in GitHub Desktop.
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" | |
action="<?php echo site_url( 'search-results/' ); ?>"> | |
<label> | |
<span class="screen-reader-text"> | |
<?php echo _x( 'Search for:', 'label' ) ?> | |
</span> | |
<input type="search" class="search-field" | |
name="searchwp" | |
placeholder="<?php echo esc_attr_x( 'Search...', 'placeholder' ) ?>" | |
value="<?php echo isset( $_GET['searchwp'] ) ? esc_attr( $_GET['searchwp'] ) : '' ?>" | |
title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" /> | |
</label> | |
<input type="submit" class="search-submit" | |
value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" /> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment