Posted by jfha73 on September 8, 2010 at 2:03am
Hello guys,
I don't know if this is the right forum to post this, but here it is:
How do I declare regions for a theme?
I just bought a theme from a third party and I want to add a couple of regions to it and I don't know how to do it.
Can anyone help?
Comments
See
See http://drupal.org/node/171205
Thanks, I did include the
Thanks,
I did include the name of the new regions I want to the info file, but how do I tell page.tpl.php where they go?
Thanks in advance.
In the .info file you have
In the .info file you have lines of the form
regions[some_name] = Some Labelsome_name will be in available in page.tpl.php as $some_name (so 'some_name' needs to be a valid PHP variable name). In general it is added to page.tpl.php something like
<?php if ( !empty($some_name) ) : ?><div id="some-name">
<?php print $some_name; ?>
</div>
<?php endif; ?>
That helped a lot, thank you
That helped a lot, thank you very much