0

I downloaded the Medical Zymphonies Theme and has been modifying that to create my own theme.

In the past, I have successfully used content type-specific template files with themes that I created. However, it is not working the current theme. This is the template file for the theme.

I want a template specifically to basic page. So something like page--basic-page.tpl.php.

0

JamieR has provided a snippets in Drupal.org

function themeName_preprocess_page(&$vars, $hook) {
  if (isset($vars['node'])) {
    // If the node type is "blog_madness" the template suggestion will be "page--blog-madness.tpl.php".
    $vars['theme_hook_suggestions'][] = 'page__'. $vars['node']->type;
  }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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