How to change the layout of the widget (for example search)?

Good afternoon. I can not find a solution.
Tell me how I can change the standard search widget in Wordpress?
With this
5dfb9c343c219264080583.png

Such
5dfb9c4827df9712389938.png

The markup is available, but not sure how to change it.
April 3rd 20 at 18:44
1 answer
April 3rd 20 at 18:46
Solution
add_filter( 'get_search_form', 'my_search_form' ); 
my_search_form function( $form ) {

 $form = '
 <form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
 <label class="screen-reader-text" for="s">search:</label>
 <input type="text" value="' . get_search_query() . '" name="s" id="s" />
 <input type="submit" id="searchsubmit" value="Find" />
</form>';

 return $form;
}

Find more questions by tags WordPress