New one page regions

Rekursief's picture
Rekursief
Wed, 12/09/2015 - 07:21
#1
New one page regions

Hi,

I want to add and alse remove some regions of the front-page (page--front.tpl) but I could not find anything in de documents about this. I could find how to add general region blocks and how to add them to default page templates but that is not what I'm trying to achieve.

I've changed some regions in the the .info file but the variabele 'array_region' in page--front.tpl is still assigned with the default set of regions and my new regions are not found. Also I'm trying to figure out where this variable 'array_region' is set.
Changing the regions in the info file also gives incorrect behavior in the region settings in admin/appearance/settings/md_viska.

So I'm guessing there must be an other way to do this, as these change are also a risk for future updates of the theme.

How can I achieve this?

Thanks in advance.

phuonght's picture
phuonght
Thu, 12/10/2015 - 03:18

Hi,

Here is instruction:

  • In file sites/all/themes/md_viska/inc/admin/theme-settings-design.inc

insert code line 23 to line 26, 

else{
$key_region_list = array_keys($region_list);
}
$key_region_list = array_keys($region_list);
  • Go to theme settings tabs design-> region, sort region.

  • Back to file theme-settings-design.inc, delete inserted code: 

else{
$key_region_list = array_keys($region_list);
}

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.