How to define custom block areas in moodle theme design?

I am trying to create a new theme having a side-pre area and a bottom area . In this bottom area (left to right) I have to add 4 blocks side by side. Please help me how to determine the region (region, location) and in which files I need to change.

Thanks.

+4
source share
2 answers

You can configure your custom region in the theme / config.php file, for example -

'course' => array( 'file' => 'general_layout.php', 'regions' => array('side-pre', 'bottom-region' ), 'defaultregion' => 'side-pre', 'options' => array('langmenu' => true), ), 

And define the area in the theme layout file /layout/yourlayout.php

 <div id="region-pre" class="block-region"> <div class="region-content"> <?php echo $OUTPUT->blocks_for_region('bottom-region') ?> </div> </div> 

See moodle doc for details - http://docs.moodle.org/dev/Themes_2.0

+9
source

In the theme selector you can choose a theme that you like for example .... Site Administration → Appearance → Themes → Theme Selector

-3
source

All Articles