this decision.
we just need to change the sidebar id. id should be only in small letters. Caps are not allowed. if we use the cover identifier on any side panel, the problem arises on the same side panel or on any other side panel to automatically remove widgets when updating.
I just mention an example below.
This is the wrong template -
register_sidebar( array( 'name' => __( 'Main Sidebar', ), 'id' => 'Sidebar-1', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => "</aside>", 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );
This is the correct template. Please note that I just changed the identifier to correctly configure the saving of widgets.
register_sidebar( array( 'name' => __( 'Main Sidebar', ), 'id' => 'Sidebar-1', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => "</aside>", 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );
Secondaly, wordpress never mentioned that the identifier should be in small letters, this is another wordpress error. But in such large cms, these things are sure to happen.
source share