Tag Archives: body_class

63 | A Sidebar Template for a Page in the ‘One-Column’ Layout in Twenty Eleven

g+

This article describes the necessary coding to create a page template with a sidebar within a ‘one-column’ layout of Twenty Eleven; the example is for a right sidebar.
Create your own page template from a copy of the sidebar-page.php template; edit the Template Name; correct the coding in sidebar.php; adapt the body_classes in functions.php; set a max width for the template. Check the whole post »

Posted in Tips & Tricks, Twenty Eleven, WordPress | Tagged , , , , , , , | 6 Responses

44 | Twenty Eleven – Sidebar on Single Posts and Pages

g+

How to add the sidebar back into the new default theme of WP3.2 – Twenty Eleven.
Twenty Eleven is a very versatile theme, however, the ‘missing’ sidebar on single posts or pages is quite disturbing for some users, loosing their advertising space or the main navigation.
To get the sidebar back is not that simple – style.css is quite complex, and the layout of a single post or page is done with a clever use of a specially introduced css class in the body tag. Check the whole post »

Posted in Twenty Eleven, WordPress | Tagged , , , , , | 69 Responses