Edit once, change everywhere - Sections remove unnecessary code duplication and streamline developer activity.

Sections are reusable chunks of markup and/or code that allow developers to componentise functionality.

Sections allow developers to reduce duplication

 

When to use Sections - An example

Let's say you want to use image carousels within your eCommerce store. You want carousels on a number of different pages, and multiple carousels on a single page. Rather than repeating identical markup/code, you create a new enter the markup/code in a new 'carousel' section. When you want to add a carousel to a page, simply call the 'carousel' section, passing through different parameters if required.

 

Section location

All sections are held within your local Aero installation. You can find them here:

resources>views>sections

 

Default Sections

Aero Themes contain the following sections by default:

  • Breadcrumb
  • Cookie Bar
  • Footer
  • Header
  • Meta

Articles in this section

Was this article helpful?
0 out of 0 found this helpful