Many people having issue when creating the wordpres theme and show search widget in theme. In this tutorial I will show you how to show default search widget with our custom styling.
you can override the default wordpress search widget.
For that use the following code.
function widget_override_search(){
?>
<li id="linkcat-2">
<h2> <span>Wordpress Search</span></h2>
<ul>
<form id="searchform" method="get" action="<?php bloginfo('home'); ?>" style="padding:10px">
<div>
<input type="text" name="s" id="s" size="50" />
<input type="submit" id="searchsubmit" value="<?php echo attribute_escape(__('Search')); ?>" />
</div>
</form>
</ul>
</li>
<?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Search'), 'widget_override_search');





Setting the style for wordpress search widget is common requirement for blogs. Thanks for information.
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
This post makes a lot of sense !
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Great read. Thanks for the info!
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
This post makes a lot of sense !
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.