Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Have you tried similar forum threads http://wordpress.org/search/sidebar+displaying+at+bottom?forums=1 ?
Have you made a Child Theme of Twenty Eleven?
I’m hoping someone may have encountered the same problem
many have – the forum is full with topics about the same ‘problem’ – how to add a sidebar to posts in Twenty Eleven – have you tried the forum search?
first step is always to create a child theme http://codex.wordpress.org/Child_Themes to work with – do not edit the default theme Twenty Eleven directly.
for many users, using the plugin http://wordpress.org/extend/plugins/twenty-eleven-theme-extensions/ works fine;
some users prefer coding as described in my tutorial.
edit:
simplified:
to re-adjust the body_class()
output on the single post, add this to functions.php of the child theme:
add_filter('body_class', 'adjust_body_class', 20, 2);
function adjust_body_class($wp_classes, $extra_classes) {
if( is_single() ) :
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);
}