Hey everyone, first off I'm new to drupal and to the forum, and I can say drupal has made building my site a hell of a lot easier than it would have been otherwise.

However, I'm having a problem.. I have absolutely 0 knowledge of PHP, and I can just get by when it comes to CSS.

For my page I'm modifying the Sky theme, and I have no idea how to create custom regions.. I've tried messing with tutorials and all of that with no luck.

If someone could please help walk me through what I need to do I would greatly appreciate it.. I am trying to create three regions, two inside of the header, and one directly below the header stretching the width of the page.

Please help me!!

-Drew

Comments

jix_’s picture

Regions are defined in your theme's info file. (So sky.info in this case.)

To give an example, say you want to add regions 'header left' and 'header right'. This is what you should put in sky.info:

regions[header_left] = Header left
regions[header_right] = Header right

Then, in your copy of page.tpl.php, you can 'print' the contents of these regions like so:

<?php print $header_left; ?>
<?php print $header_right; ?>
Anonymous’s picture

Ah that's basically what I found myself needing too. Thanks!