With the core block system, a body class gets set to .two-sidebars, .one-sidebar, no-sidebars depending on wether or not the current page displays blocks in those regions. This makes it very easy to design a theme that automatically changes layout to accommodate sidebars only when present.

But with context, the class is always .two-sidebars. Which causes big empty columns even when there is no sidebar content.

This problem exists across all themes that I have tested.

Surely I don't have to install the delta module and create multiple layouts and then manually create contexts to manually designate a layout for every page on my site?

Comments

dropbydrop’s picture

Status: Active » Closed (works as designed)

I had the problem only when logged in.
Everything is ok for anonymous users.

Fixed if you at admin/structure/context/settings, uncheck "Show all regions" (including those that are empty). Enable if you are administering your site using the inline editor.

dropbydrop’s picture

Status: Closed (works as designed) » Active

related?
http://www.sooperthemes.com/drupal-blog/want-your-theme-be-compatible-co...
"it would be nice if Context module would throw a warning if there was a theme override of theme_blocks"

_vid’s picture

Thanks dropbydrop. That cleared things up for me.