• Home
  • About Mitch
  • Speaking
  • Articles
  • Contact
  • Home
  • About Mitch
  • Speaking
  • Articles
  • Contact

Digital Strategist

WordPress Developer

Content Creator

Unapologetic Punk

Mitch Canter

  • X
  • Bluesky
  • GitHub
  • Twitch
  • YouTube
  • LinkedIn
WordPress

Add a Buttonless Search Form in WordPress

CMDR Mitchcraft

Reading time: 1 minute

I love search forms.  But sometimes, designs call for forms to be placed in a tight space to save room for other elements or where buttons may look out of place.  If that’s the case, then you can add a special box that will allow users to search with the enter key (or the Done key on the iPhone).

Here’s the code:

<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
<input type="text" placeholder="Search" name="s" id="s" />
<input type="hidden" id="searchsubmit" />
</form>

This drops in a stylable input field that has no button – all the user has to do is enter the text and hit enter or the done button – simple as that.

You can also style by applying CSS styling to “#s”

no button, search box, WordPress
  • WordPress 2.6: The Tour

    WordPress 2.6: The Tour

    Reading time: 1 minute

    For your viewing pleasure, and because I’ve had the lovely honor to update this morning, here is a “best of the best” video (and a link to the full post) as to what to expect for WordPress 2.6 (Tyner).  Enjoy!

    WordPress
  • The Best WordPress Social Sharing Buttons

    The Best WordPress Social Sharing Buttons

    Reading time: 1 minute

    If you run a blog (or a church site with some sort of event calendar or news section), having a place where your visitors and members can share your content is absolutely invaluable.  Sometimes all it takes is for people to start spreading the word about an event. By giving them the chance to do so,…

    WordPress