Home » HTML 5 » WP: Adding a HTML5 Search Form

WP: Adding a HTML5 Search Form

A simple script from your local Gainesville Web Designer.

[code scroll="false" language="htmml"]
<form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>">
	<label>
		<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span>
		<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" />
	</label>
	<input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" />
</form>
[/code]
More Web Design Blog Content

Insurency SEO

Glad to have Insurency on board with the Livewire team. We did not make their website but we’ll be doing their Internet marketing. We have a great plan for them and will be proud to be competing alongside huge names like Geico and Progressive. It’s quite the challenge

The Brief Business Guide To Instagram

Instagram is a misunderstood product for most business owners. Isn’t facebook enough? No. Unfortunately you must not only adapt to the changing social media platforms but you have to keep adapting to all the various forms of networkings online. For some it’s fun, for others it’s a necessary

JW Freeman Plumbing Has A New Website

JW Freeman plumbing is a new client with lots of potential. He needs something that will put him on top and Livewire is that something. We have tons of experience and dozens of happy clients that proves we have the formula for success. We don’t keep it a

The Greatest Watch In The History Of Mankind

Well, this has little … really nothing … to do with website design or SEO but we would like to take a moment to recognize the greatest wood watch in the entire world. This thing is decked out. Sleek, modern and unique. It slides on like a Gregory

Add YARPP to Custom Post Types: WordPress

A great little plugin for adding related posts to your blog has been around for a while: YARPP, Yet Another Related Posts Plugin. It’s fairly robust, for being free, but it does not natively support custom post types – a bummer. A quick way around this is to

WordPress: Capturing Post Author Meta

An easy one here from your local Gainesville Web Designer: How to retreive the author information from a post in the WordPress loop. This assumes you’re in the loop, of course. $meta_field= get_the_author_meta( ‘your_meta’ );   Badda-bing badda-boom. You’re done. It really is that simple. Just use get_the_author_meta,