• 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
  • Yes, Another WordPress Update.  So?

    Yes, Another WordPress Update. So?

    Reading time: 1 minute

    WordPress released their press release about WordPress 3.0.4.  As soon as it did, I saw the WordPress hashtag on twitter light up – people complaining about having yet another security update.  I hate to get on a soapbox about this, but seriously – you’re going to complain about people working to make your site as…

    WordPress