I have created 3 perfectly working custom regions to my theme(modified from Garland) and now I wanted to add 2 more regions. I did the exact same procedure as the first 3, changed my .info file added the regions[name] and modified the page.tpl.php. But these 2 new regions simply wont show, so I started to wonder whether there was some kind of limit to custom regions?

Thanks for you help!

Comments

ThePeach’s picture

I've got 5 regions configured, and had no problems at all. there should be something wrong on your config files/page.php.tpl

Cayhn’s picture

Must be something wrong then, i'll add my code here. Maybe an extra pair of eyes could detect something :)

.info:
regions[header] = Header
regions[upperright] = Upper Right //The one not showing
regions[underheader] = Under Header
regions[left] = Left sidebar
regions[middleleft] = Middle Left
regions[middleright] = Middle Right
regions[right] = Right sidebar
regions[content] = Content
regions[footer] = Footer

Page.tpl.php:

<?php if ($upperright): ?>
        <div id="sidebar-upperright" class="upperright">
          <?php print $upperright ?>
        </div>
<?php endif; ?>
Jeff Burnz’s picture

No problem with the code, I can only think you havent cleared cache data (info files are cached), in performace settings. Does the region show up in the blocks page?

Cayhn’s picture

Cache has been cleared several times, still no luck. No they dont show at all and i'm starting to get out of ideas, I have tried to add other regions in different places in the page template but no new regions show. Weird!

ThePeach’s picture

have you tried to avoid the if clause and use only print $upperright ?

Cayhn’s picture

Yes :)
It did no difference.

marvix’s picture

here is my regions :

regions[top] = Top
regions[nav] = Top Navigation
regions[search] = Search
regions[right] = Right Side
regions[top_content] = Top Content
regions[content] = Content
regions[footer] = Footer

the blocks of $top_content is showing in $content region ...