Skip to content

Instantly share code, notes, and snippets.

@rang501
Created February 13, 2015 09:09
Show Gist options
  • Save rang501/058dd69019435c3da9c1 to your computer and use it in GitHub Desktop.
Save rang501/058dd69019435c3da9c1 to your computer and use it in GitHub Desktop.
Add css class to detect panels page.
function THEME_preprocess_html(&$variables) {
$panels = page_manager_get_current_page();
$variables['classes_array'][] = (!$panels ? 'not-' : '') . 'panels-page';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment