This is how I have defined the sidebars in functions.php file →
function zebra_sidebar() {
register_sidebar (array(
'name' => 'Vertical Sidebar',
'id' => 'sidebar1',
'before_widget' => '<div class="widget-item">',
'after_widget' => '</div>'
));
register_sidebar (array(
'name' => 'Horizontal Sidebar',
'id' => 'sidebar2',
'before_widget' => '<div class="widget-item">',
'after_widget' => '</div>'
));
register_sidebar (array(
'name' => 'Footer Sidebar',
'id' => 'sidebar3',
'before_widget' => '<div class="widget-item">',
'after_widget' => '</div>'
));
}
add_action('widgets_init', 'zebra_sidebar');
is there any flaw in my sidebar definition? Because even those widgets that are in the core WordPress such as search widget is only displaying Title on the front page, but not the search Input box. Although the search widget is a default WordPress widget provide at the time of fresh WordPress installation.
The Live WP site is provided here.
searchform.php
file is empty or problematicget_search_form
filter used in your theme or plugins.