I added the following to my template.tpl.php file in the theme I'm using:

'frontpage_left' => t('frontpage left'),
'frontpage_right' => t('frontpage right'),

So it looks like:

function zen_regions() {

return array(

'left' => t('left sidebar'),
'right' => t('right sidebar'),
'content' => t('content'),
'header' => t('header'),
'footer' => t('footer'),
'frontpage_left' => t('frontpage left'),
'frontpage_right' => t('frontpage right'),

);

}

Yet they do not appear in the blocks drop down? Any ideas? Thanks.

Comments

vm’s picture

I assume you meant your template.php ? not tpl.php ?

start by removing the , from the last entry, not needed.

the underscore may be a problem, have you tried removing it ?
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime

Eluzion’s picture

Sorry about that, yeah I meant the template.php file. ;) I did try removing the last , as well as renaming it with no underscore. Still no luck.

seanHodge’s picture

If you renamed your template from zen to something else then you will have to refer to it as the name of your new template as so: function myNewTemplateName_regions

Just a possibility of what is happening.

Eluzion’s picture

That was it! Thanks a bunch!