Skip to content

Commit

Permalink
#4443 form element fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabi09 committed May 7, 2020
1 parent 73e0682 commit 4d8ca04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/search/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ function ampforwp_framework_get_search_form() {
<div class="amp-search-wrapper">
<label aria-label="Type your query" class="screen-reader-text" for="s">' . esc_html__($label,'accelerated-mobile-pages') . '</label>
<input type="text" placeholder="AMP" value="'.esc_attr($amp_query_variable_val).'" name="'.esc_attr($amp_query_variable).'" class="hidden"/>
<input type="text" placeholder="'.esc_attr($placeholder).'" value="' . esc_attr(get_search_query()) . '" name="s" class="s" />
<label for="placeholder"></label>
<input id="placeholder" type="text" placeholder="'.esc_attr($placeholder).'" value="' . esc_attr(get_search_query()) . '" name="s" class="s" />
<label aria-label="Submit amp search" for="amp-search-submit" >
<input type="submit" class="icon-search" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
</label>
Expand Down

0 comments on commit 4d8ca04

Please sign in to comment.