Front-end Web Developer | Tampa, FL

How to add a Search box in WordPress template

Posted on: March 20th, 2010 by admin No Comments

{CODE type:php;}
<form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
<div class=”searchBox”><input class=”serchText” type=”text” value=”Search” name=”s” id=”s” />
<input type=”submit” id=”searchsubmit” value=”Search” class=”serchBtn” />


3. Now add this code to your template:


{CODE type:php;}
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>


Thats it. Now You know how to add search bar in WP blog.

Comments are closed.