• 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
  • 50 Days to a Better Blog–Day 6: Quicker Blogging with Shortcodes

    50 Days to a Better Blog–Day 6: Quicker Blogging with Shortcodes

    Reading time: 2 minutes

    When it comes to blogging, one of the biggest reasons people stop is the lack of time it takes to effectively update a blog. I’m always on the lookout for tips that I can give to people to help them blog quicker without sacrificing content.

    WordPress
  • WordPress 3.2: A First Look

    WordPress 3.2: A First Look

    Reading time: 2 minutes

    I’ve just downloaded a local copy of the brand spanking new WordPress 3.2beta1 – and let me be the first to say… it’s gorgeous. Simplicity is the motto here, and the UI design team has done an outstanding job in streamlining a lot of the elements down.  I mean, take a look at this new…

    WordPress