Created
January 6, 2021 10:32
-
-
Save jchristopher/5d786f1ab0ad1ac707bbb81a2939877a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 home_url( '/' ); ?>"> | |
<label> | |
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span> | |
<input type="search" class="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' ) ?>" /> | |
</label> | |
<p> | |
<input type="checkbox" class="search-field" id="source-post" | |
value="post" name="sources[]" /> | |
<label for="source-post">Posts</label> | |
</p> | |
<p> | |
<input type="checkbox" class="search-field" id="source-page" | |
value="post" name="sources[]" /> | |
<label for="source-page">Pages</label> | |
</p> | |
<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