• 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
  • The State of WordPress Plugin Development

    The State of WordPress Plugin Development

    Reading time: 4 minutes

    Seeing all the fun plugins you guys posted to the site today has reminded me of a topic that I’ve both seen published on other sites as of late and been pondering myself lately – the authors.  I’ve co-created a plugin, and it’s currently residing well in the plugin repository, but it hasn’t been all…

    WordPress
  • WordPress 3.9: An Early Overview

    WordPress 3.9: An Early Overview

    Reading time: 3 minutes

    With the release of WordPress 3.9 beta 1 on March 11, everyone is (or should be) ensuring their plugins and themes are ready for the update.  There’s a lot of exciting things coming from this update, and it’s easy to overlook some of the more technical (but still important) aspects being added into WordPress.  There’s…

    WordPress