Create layouts with blank spaces using the Force Positions function to allow for more complex layout customizing. Find out more...
This section covers how to add a new widget position to the Gantry Framework and to your Gantry enabled theme.
Determine the position name and location on your theme where you would like your new position to appear. In our example we will use "example".
Open your theme index.php file and go to where you would like to add your new position. Using $gantry we will make a call to the object using the function displayModules(positionname,widgetlayouttype,widgetchromelayout); This call will need to be echoed.
Example:
Open templateDetails.xml and scroll down to the "positions" tag where the default Gantry positions are listed. Under here we will need to add our positions as in the example below:
Next scroll down to the "fields" tag. This is where all the Gantry theme fields are defined including the widget positions. Scroll down then past the line which says
This is where we add our new position layout slider. We need to add the following xml block to make this appear in the Theme Manager:The new position should now be available in the Appearance → Widgets and widgets can now be assigned. Once asssigned they will appear on your theme like any other Gantry widget.