Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
Guenni007
Participantthanks i got it
Guenni007
Participantyou mean via the contact form ?
Guenni007
Participantbtw you can stay class s but add id s
<form action="<?php echo esc_url( home_url( '/' ) ); ?>" class="searchform clearfix" method="get"> <label class="assistive-text" for="s"><?php _e( 'Search', 'cleanretina' ); ?></label> <input id="s" class="s field" name="s" type="text" placeholder="<?php esc_attr_e( 'Search', 'cleanretina' ); ?>"> </form><!-- .searchform -->Guenni007
Participanti now did it this way:
i removed the class s and set an id s<form action="<?php echo esc_url( home_url( '/' ) ); ?>" class="searchform clearfix" method="get"> <label class="assistive-text" for="s"><?php _e( 'Search', 'cleanretina' ); ?></label> <input id="s" class="field" name="s" type="text" placeholder="<?php esc_attr_e( 'Search', 'cleanretina' ); ?>"> </form><!-- .searchform -->and this will do the trick
Guenni007
Participantone quick and dirty solution to get rid of that searchform error is to give no label to the assistive-text.
so remove the line:
<label class=”assistive-text” for=”s”><?php _e( ‘Search’, ‘cleanretina’ ); ?></label>Search will work without it and html Validation is than correct.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
