• 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.7 Beta – An Introduction (screencast)

    WordPress 2.7 Beta – An Introduction (screencast)

    Reading time: 1 minute

    A lot of people have been asking me to explain some of the new features in WordPress 2.7 – the main ones are the admin Interface and some of the new, movable widget-like items in the post menu and on the dashboard.  But, it’s hard to talk about visual changes when, to be honest, you…

    WordPress
  • Two Recently Updated Plugins YOU Should Be Using

    Two Recently Updated Plugins YOU Should Be Using

    Reading time: 1 minute

    Every now and then, just because I’m the biggest WordPress dork I know, I like to just peruse the plugin database to see what’s been updated recently.  After all, how can you use new plugins if you don’t know they’re there?  I’m glad I looked when I did – I found a few plugins that…

    WordPress