• 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
  • Should Businesses Use WordPress?

    Should Businesses Use WordPress?

    Reading time: 3 minutes

    Short answer: Yes. The longer one: WordPress has been around for over 7 years now.  From its humble beginnings as the blogging software that took down MovableType, it’s morphed and changed and evolved itself into the number one content management system (or CMS) on the web today.  WordPress powers over 10% of all websites on…

    WordPress
  • A Look at The Best WordPress Contact Forms

    A Look at The Best WordPress Contact Forms

    Reading time: 5 minutes

    No site is complete without having a contact form of some kind on it. Whether you use it for lead generation, user submitted content, or just to have people stop and say hello, having a form visitors can easily fill out to send you a message is crucial.  WordPress is privileged to have an amazing…

    WordPress