• Is it possible to change the search bar to only submit by pressing enter. I want to get rid of the search button? I am using a them that (in Maxthon) doesn’t go well with the search bar, due to the column width. I have been searching for a plugin and have searched on this site for an answer. Thanks for your help. It is greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Check out the theme I use on my site — it’s called Neat. The theme includes a Search field with no Search button.

    Thread Starter kameyers

    (@kameyers)

    Yeah that’s the type of search bar, however, I like the theme I am currently using. Thanks anyway for your feedback. Much appreciated.

    Here is the snippet of code from the Neat theme’s searchform.php:

    <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <div><input type="text" value="search <?php bloginfo('name'); ?>" name="s" id="s" onblur="if (this.value == '') {this.value = 'search <?php bloginfo('name'); ?>';}" onfocus="if (this.value == 'search <?php bloginfo('name'); ?>') {this.value = '';}" />
    <input type="submit" id="searchsubmit" />
    </div>
    </form>

    I would download the Neat theme anyway, just to take a look at the code and styling; perhaps you can incorporate it into your own theme. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search bar w/o the button possible?’ is closed to new replies.