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

Comments

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) {
        unset($variables['classes_array'][$key]);
    }
  }
}
harryma’s picture

@jtwalters

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

Shashwat Purav’s picture

#5 worked for me as well.

Isaac Rodriguez’s picture

#1 Works fine for me, Thanks @jtwalters

madan879’s picture

Thanks @callum.bennett, Its worked for me......