I added the following code in functions.php right after <?php
add_filter('body_class', 'adjust_body_class', 20, 2);
function adjust_body_class($wp_classes, $extra_classes) {
if( is_page_template('blog.php') ) :
// Filter the body classes
foreach($wp_classes as $key => $value) {
if ($value == 'singular') unset($wp_classes[$key]);
}
endif;
// Add the extra classes back untouched
return array_merge($wp_classes, (array) $extra_classes );
}
What do you mean by in the same position as sidebar-page.php?
Thank you for your suggestions, t-p.
Deactivating the plugins didn’t result in any change.
I’ve deactivated my child theme and that didn’t help either.
As this was the first site I made on WordPress, I edited the base theme some before creating the child theme. I thought this was causing the problem but I downloaded a clean TwentyEleven and previewed it with my childtheme disabled and I STILL don’t see a sidebar.
??? 🙁