Is there a way to use get_sidebar() when no widgets are activated?

WP version 4.4.2, I have a customized sidebar.php and no widgets activated, which automatically prohibits get_sidebar() function to load contents of sidebar.php. Is there a way to forcefully load sidebar.php file?

Topic theme-twenty-sixteen sidebar widgets Wordpress

Category Web


Ah, default twentysixteen theme had additional function to add body class:

if ( ! is_active_sidebar( 'sidebar-1' ) ) {
    $classes[] = 'no-sidebar';
}

So that was the reason for sidebar not to show up.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.