By Cayhn on
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
I've got 5 regions
I've got 5 regions configured, and had no problems at all. there should be something wrong on your config files/page.php.tpl
Must be something wrong
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:
No problem with the code, I
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?
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Cache has been cleared
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!
have you tried to avoid the
have you tried to avoid the if clause and use only
print $upperright?Yes :) It did no difference.
Yes :)
It did no difference.
I have the same !
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 ...