I need to add four sidebar widgets that display on designated pages. When I add the code to create the new widgets to the functions.php, it disables the other widgets.
The footer widget, and one of the existing sidebar widgets stops working. They still appear in Appearance -> Widgets, but on the website they stop displaying.
Here is the code I used to add the widget.
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Sidebar About',
'id' => 'about-sidebar',
'description' => 'Sidebar that shows only on the About page',
'before_widget' => '<li id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
}
I am worried that my clients website has too many plugins that may interfere with creating new widgets.