Browsing all articles tagged with search - Share Programming Tips
Feb
10

Insert your own Search option in your wordpress theme

 While developing you own theme many times you don’t want to use the default search of the wordpress and you want your own search option which looks better and suits your site design.So if you want to insert your own search option in the theme instead of the default search its very easy to implement it.

Now lets do that in the wordpress theme,

First of all add one function in the functions.php file in your theme folder.

This function creates your search view.And add it to the wordpress site where ever you want.

So lets define that function in functions.php file,

function custom_search_form() {
?>
<form method="get" class="" action="<?php bloginfo('home'); ?>/">
<p>
 
<input type="text" value="" name="s" id="s"  />
<input type="submit" value="Go" />
</p>
</form>
<?php }
 
add_action('thesis_hook_header' , 'custom_search_form');
?>

read more

Follow us on Twitter! Follow us on Twitter!

Search in this website

our sponsors

latest comments

Find us on Facebook

Top Authors

35 posts
saurabh
21 posts
10 posts

Find us on stackoverflow

Polls

Tell us who you are

View Results

Loading ... Loading ...

My Bookmarks

Sponsers Link