Create layouts with blank spaces using the Force Positions function to allow for more complex layout customizing. Find out more...

Home DocumentationWordPressConfigurePer-Override Configuration

Per-Override Configuration

Another powerful feature in Gantry is the ability to control configuration on a per-override basis. Imagine the scenario where you have configured your styles, layouts and gizmos so they look perfect on your homepage, but then you realize that on a specific page you need a different layout, or possibly you want a different CSS style, etc.


Item Specific Control

Discover the power of Gantry and its ability to configure any parameter on a per-override level in this short screencast.


This type of customization in WordPress themes generally required some extensive ‘hacking’ to accomplish, or if there has been an allowance for picking a CSS style and associating it to a content item, it was extremely limited.

Advanced

Using Default and Per-Override Configuration

To use the Content Items specific settings, you should first set all your preferred configurations with the Defaults override active. These will serve as the default settings for the entire site.

After setting your defaults to the desired values, click the Add button (above the settings page tabs) and in the Assignments tab choose the content item you wish to modify the parameters for. You will then see a series of checkboxes on the left of all the supported parameters (parameters such as cache are not supported on a per-override basis). Select the checkbox next to the parameter you wish to modify, it will then become active, and you can modify as you wish. Clicking “Save Changes” in the toolbar will then save this configuration.

Advanced

Per-Override Inheritance

By default all the Per-Overrides inherit from the Default settings. However that is not always the case.

When a parameter setting is assigned to an Item which is a parent of another Item, all the children will now inherit from their parent stored params and not from the defaults settings ie. static pages and their children. The items that are affected by the parent-children inheritance are : pages, menu items and archive pages.

Advanced