diff --git a/bootstrap_barrio.theme b/bootstrap_barrio.theme index b095b17b255b0725acc3a316acc7c6571924fa9d..70e6f7830a66e1737cced6c940f3f691d6880372 100644 --- a/bootstrap_barrio.theme +++ b/bootstrap_barrio.theme @@ -348,12 +348,12 @@ function bootstrap_barrio_theme_suggestions_region_alter(array &$suggestions, ar $nowrap = [ 'breadcrumb', 'content', - 'primary-menu', + 'primary_menu', 'header', - 'sidebar-first', - 'sidebar-second', - ] - if ( in_array($variables['region'], $nowrap) ) { + 'sidebar_first', + 'sidebar_second', + ]; + if ( in_array($variables['elements']['#region'], $nowrap) ) { $suggestions[] = 'region__nowrap'; } }