When your website means business.

Snippets: Search

Add search form to specific nav menu»

add_filter('wp_nav_menu_items', 'add_search_form', 10, 2); function add_search_form($items, $args) { if( $args->theme_location == 'MENU-NAME' ) $items .= '<li class="search"><form role="search" method="get" id="searchform" action="'.home_url( '/' ).'"><input type="text" value="search" name="s" id="s" /><input type="submit" id="searchsubmit"…
Nav Menu, Search | Type: PHP

HTML5 Toggle Search»

First, add HTML5 support to functions.php
CSS3, Search, WordPress | Type: CSS

Search Form for CPT»

To add a search form that searches only a particular post type, not your entire website. <form id="cptsearch" action="<?php echo home_url(); ?>" method="get"> <input name="s" type="text" /> <input name="post_type" type="hidden"…
Search | Type: PHP