O'Reilly logo

WordPress 2.8 Themes Cookbook by Lee Jordan, Nick Ohrn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Positioning multiple sidebars in your theme by using CSS

As you may have seen previously in this chapter, just because you add a second or third sidebar to your theme does not mean that it will be placed where you want it in your layout. We will adjust the layout of a two-column theme to a three-column theme with a sidebar on each side, by using only CSS, in your style.css file.

Getting ready

We will be using a basic theme customized from the WordPress Classic theme. If you are already using the Classic theme, the measurements should work precisely. You may have to adjust the width, padding, or margins from the examples in this recipe to fit your layout. We will be spending most of our time in the style.css file of the theme, so if you are unfamiliar ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required