Why assign well class to the sidebar_first via _preprocess_region()?
in this way is difficult to remove the class in the subtheme.


jtwalters’s picture

Agreed. I managed to remove the well class with this override in a sub-theme:

* Preprocess variables for region.tpl.php
* @see region.tpl.php
function SUBTHEME_preprocess_region(&$variables, $hook) {
  // remove "well" class added in bootstrap base theme
  if ($variables['region'] == 'sidebar_first') {
    if(($key = array_search('well', $variables['classes_array'])) !== false) {
harryma’s picture


Thanks for the snippet! works perfectly.

mulumba’s picture

@jtwalters thank you, works great!

markcarver’s picture

Component:Code» Documentation
Category:Feature request» Support request
Issue summary:View changes
Status:Active» Closed (fixed)

Marking this as fixed and closed since the 7.x-3.x branch now has settings to determine which regions are converted into "wells".

callum.bennett’s picture

This can also be achieved via the UI.

Appearance -> Settings -> (Theme name) -> Components -> Region Wells

arulmjoseph’s picture

thats cool