diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 7d638f6..7a9d121 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2477,6 +2477,11 @@ function template_process(&$variables, $hook) { function template_preprocess_html(&$variables) { $language_interface = drupal_container()->get(LANGUAGE_TYPE_INTERFACE); + // Take over any classes on the $page render element. + if (isset($variables['page']['#attributes']['class'])) { + $variables['classes_array'] = array_merge($variables['classes_array'], $variables['page']['#attributes']['class']); + } + // Compile a list of classes that are going to be applied to the body element. // This allows advanced theming based on context (home page, node of certain type, etc.). // Add a class that tells us whether we're on the front page or not.