function philosophy_search_form($form)
{
$home_dir = home_url('/');
$label = __('Search For:', 'philosophy');
$btn_label = __('Search:', 'philosophy');
$newform = <<<FORM
<form role="search" method="get" class="header__search-form" action="{$home_dir}">
<label>
<span class="hide-content">{$label}</span>
<input type="search" class="search-field" placeholder="Type Keywords" value="" name="s" title="{$label}" autocomplete="off">
</label>
<input type="submit" class="search-submit" value="{$btn_label}">
</form>
FORM;
return $newform;
}
add_filter('get_search_form', 'philosophy_search_form');
<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>
<input type="submit" class="search-submit"
value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" />
</form>