I'm working on a child theme of the Toolset Bootstrap Theme. I need to create a custom sidebar, so I registered the new sidebar in my child theme's function.php file:
function wpbootstrap_register_newsidebar() {
/* Register the new sidebar. */
register_sidebar(
array(
'id' => 'sidebar-999',
'name' => __( 'Home sidebar', 'wpbootstrap' ),
'description' => __( 'This sidebar will display only on the homepage.', 'wpbootstrap' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
)
);
} add_action( 'widgets_init', 'wpbootstrap_register_newsidebar' );
I can see the new sidebar in the admin screen, drag widgets into it, add a title, reorder them but if I reload the page all of the widget disappear from the sidebar. The parent theme already has 3 built-in widgetized areas, which work just fine: I can add and save widgets in those areas. Also if I switch to a default theme, like Twenty Fourteen, and try to register a custom sidebar using the same code pasted above, I get a fully functional custom sidebar area. So apparently my code is not the problem.
I tried to post the question on the parent theme's vendor support forum, but haven't heard from them yet, so I thought to ask to the wider WP community just in case someone is experiencing a similar problem.
I'm not a WP guru and I don't know much about how custom widgetized area are created and stored inside WP environment, but if someone can point me to the right direction I'd be more than happy to learn some more about it.
Unfortunately I'm working on a local development version of a website, so I cannot provide any testing URL.