2

I am not seeing the content I have for the header region in my drupal theme is it best practice to use the following code in the page.tpl.php?

<?php include('region--header.tpl.php'); ?>

I see the content when I use the code above but I cannot see it when I use the code below:

<?php if ($page['header']): ?>
  <?php print render($page['header']); ?>
<?php endif; ?>

In my .info file I have the following code:

regions[header] = Header
Amen Ra
  • 2,843
  • 8
  • 47
  • 85

1 Answers1

3

Copy your base region.tpl.php file to the theme's templates folder. region--header.tpl.php file and region.tpl.php file should be placed in the templates folder.

AKS
  • 4,618
  • 2
  • 29
  • 48