Add new regions into Drupal theme
Add the following line into your theme .info file to add new regions.
To do this go to site->all->themes->your_theme
open your_theme.info and add regions like this
regions[your_region] = Your region description
Now go to page.tpl.php
and add the following code where you want to add region
<?php print render($page['your_region']); ?>
To do this go to site->all->themes->your_theme
open your_theme.info and add regions like this
regions[your_region] = Your region description
Now go to page.tpl.php
and add the following code where you want to add region
<?php print render($page['your_region']); ?>
Comments
Post a Comment