Category Archives: Twenty Eleven

dealing with one of the default themes

83 | Exclude Pages from Default Menu in Twenty Eleven

g+

If you are not using the custom menu, the theme uses `wp_page_menu()` as a fallback. As always, start by creating a child theme of Twenty Eleven; http://codex.wordpress.org/Child_Themes To exclude pages from the default menu, edit functions.php in the child theme … Check the whole post »

Posted in Easy Coding for Wordpress, Twenty Eleven, WordPress | Tagged , , , , | Leave a comment

77 | Featured Image in Header of Archive Pages in Twenty Eleven

g+

To show the ‘featured image’ of the top post as header image in an archive page in the Twenty Eleven theme, edit header.php in the child theme; change this section: to:

Posted in Easy Coding for Wordpress, Twenty Eleven, WordPress | Tagged , , , | 4 Responses

65 | 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 , , , , , , , | 7 Responses

61 | Show Description for Header Images in Twenty Eleven

Show Description for Header Images in Twenty Eleven
g+

This code is for a child theme of Twenty Eleven, because the direct editing of the default theme is not recommended. Since wp3.4, the function get_custom_header() takes care of some of the information of the header images, such as width, … describe it all … »

Posted in Tips & Tricks, Twenty Eleven, WordPress | Tagged , , , , , , , | Leave a comment

53 | Twenty Eleven – New Page Template with Sidebar Correction

g+

If you are creating a new page template for a child theme of Twenty Eleven, with a sidebar, you need to correct the body_class output to remove the css class .singular. Add this to functions.php of your child theme: If … Check the whole post »

Posted in Tips & Tricks, Twenty Eleven | Tagged , , | 17 Responses

50 | Page Template Sidebar Overwrite Theme Options in Twenty Eleven

Page Template Sidebar Overwrite Theme Options in Twenty Eleven
g+

Twenty Eleven already comes with a page template to add a sidebar to static pages. However, this sidebar will always be on the same side as the sidebar on the front  page, ruled by the ‘theme options’. On some pages, … Check the whole post »

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

48 | Twenty Eleven – Sidebar and Other Adaptations for Hand-held Devices

g+

As the title says: how can you keep the sidebar on narrow screens such as the iPhone® or iPad® and set a minimum width for your site, using (a child theme of ) Twenty Eleven? The solution lies in the … Be responsive … »

Posted in Easy Coding for Wordpress, Tips & Tricks, Twenty Eleven, WordPress | Tagged , , , , | 31 Responses

47 | Twenty Eleven – Overwrite the Dark Color Scheme in a Child Theme

g+

Overwriting or customizing the dark color schem in a child theme of Twenty ten is difficult, because the dark stylesheet /colors/dark.css get loaded after the style.css of the child theme. You can duplicate the same stylesheet structure in the child … Check the whole post »

Posted in Twenty Eleven | Tagged , , , | 5 Responses

46 | 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 , , , , , | 67 Responses