In the admin bar you should be able to see the present conditionals (that are true), e.g. is_page()
, is_singular()
. Also you should be able to see what template file is being loaded, e.g. page.php, index.php.
The conditions for Content Aware Sidebars to work with a page template is:
if(is_singular() && !('page' == get_option( 'show_on_front') && get_option('page_on_front') == get_the_ID())) {
$template = get_post_meta(get_the_ID(),'_wp_page_template',true);
return ($template && $template != 'default');
}
return false;
In other words: If you are on a singular page not being the static front page, and this page uses a template not being the default one, we proceed to get the sidebars for the specified template.