I think people still want to hit search button with mouse rather than "Enter" button.
I made a few changes to fix it.
First - changed searchform php from:
Code:
<form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <input type="text" class="field" name="s" value="<?php esc_attr( the_search_query() ); ?>" /> <input type="submit" class="submit" name="submit" value="search" /> </form>
Code:
<form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <input type="text" class="field" name="s" value="<?php esc_attr( the_search_query() ); ?>" /> <input type="submit" class="submit" name="submit" value=""> </form>
Code:
.widget .submit { display: inline-block; cursor: pointer; margin: 0; border: 0 solid #ddd; border-radius: 3px; padding: 0; width: 26px; height: 28px; position: absolute; right: 0; top: 0; } .widget .searchform .field { width: 100%; max-width: 300px; }
http://www.wood-furniture.biz/DecorTips/
I'm not a CODER. So - is it correct what I did?
Or - is there a better way to fix it?