Use the component style variants
Choose among ready variants instead of building new ones.
Life cycle: Redesign, example 29 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- The component blocks imported with the theme (
exp_component_hero...) offer their style variants as view types; the media design renders them withexplayouts/block/exp_component_<name>.tpl.
With templates
- Override
exp_component_<name>.tplin your extension for a new variant look.
Which to choose
Try the variants before writing a template.
Check
- The wrapper shows
ngl-vt-<style>.
Related pages
- How a block maps to its templates
- Redesign examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.