Tag Archives: sidebar

88 | Adding Widgets Between Posts in the Index Page

g+

For a child theme of the (current) default theme Twenty Fifteen – a way to add a new sidebar aka widget area to show after the first post in the index page; making use of the action hook ‘the_post’. you … Check the whole post »

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

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

58 | Adding a Custom Widget Area to a WordPress Template

g+

The Codex has a chapter on how to add new widget areas (commonly referred to as ‘sidebars’) to a theme’s template: ‘Widgetizing Themes‘ This example here is to give you the direct code to add to functions.php and to the … Check the whole post »

Posted in Easy Coding for Wordpress, Tips & Tricks, WordPress | Tagged , , , , | 11 Responses

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

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