Twenty Eleven – Sidebar on single post pages
-
I have managed to edit single.php to allow a sidebar on single post pages,as here:
I inserted..
<?php get_sidebar(); ?>
In a new line just above the footer code at the bottom of the file:
<?php get_footer(); ?>
.. and used a new functions file (called my_functions.php) with:
add_filter( 'body_class', 'mh_remove_body_classes' , 50 ); function mh_remove_body_classes() { remove_filter( 'body_class', 'twentyeleven_body_classes' ); }
All single post pages now appear with a sidebar as required, but when I use the default page template for the home page I get a 3/4 page with an empty sidebar column to the right.
What I want is for all static pages to have a choice of full width or with sidebar. How do I do this?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Twenty Eleven – Sidebar on single post pages’ is closed to new replies.