0

Is there a way to access a Panel's template name to output in the body of the page?

1 Answer 1

0

Here is what I'm using in my Zen subtheme's template.php

// Add the panel's template name to the page's body classes
if($panel_page = page_manager_get_current_page()) {
  $display = panels_get_current_page_display();
  $layout = $display->layout;
  $variables['classes_array'][] = 'panel-layout-' . $layout;
}

Hope that helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.