I am fairly new to wordpress but im having trouble working out how to customise the widgets.
I have customised the search widget like so (in the functions.php file)
function widget_search() {
echo '<form role="search" method="get" class="search" action="'.home_url( '/' ).'">
<input type="search" name="s" placeholder="Search then hit enter" />
</form>';
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Search'), 'widget_search');
But i want to customise the recent posts widget and other but how to i do this. Do i just do the same method like the search on?
Iv looked at the codex but i cant seem to find the answer