Add a region into the wrapper

Events happening in the community are now at Drupal community events on www.drupal.org.
itdrupal's picture

Hi all, how can i add on openpublish new regions for my home page?
At this moment i have this default regions into the wrapper:

Header

Logo

Nav

Content

Footer

I would like to have a region between the Navigation bar and the Content, how can i do it?
Thanks

Comments

Several steps to add a new region to a theme

GreenSkunk's picture

There are several steps to add a region a new region to a theme.

  1. Open your themes .info file and add a value to the regions section. This tells Drupal what regions your theme has.

    regions[my_region_name] = My Region Name

  2. Save the changes you've made to the info file
  3. Open the page.tpl.php within your themes folder and add the following after the navigation section and before the content section
    <?php if($my_region_name): ?>
      <div id="my-region-name">
      <?php print $my_region_name; ?>
      </div><!-- /my-region-name -->
    <?php endif; ?>
  4. Save your changes
  5. Clear your cache
  6. Go to Build - Context and you should see your new region

I hope you learned a little

It is a damn poor day when you don't learn something.

Sorry, but i don't see

itdrupal's picture

Sorry, but i don't see anything when i add contents in this new region..
I want to create a new region between the Navigation bar and the Content.. you told my to create a region but what is the position of this region? Footer, header etc..??

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: