4. Section syntax
A. Metadata (on the root element)
<section class="hero"
data-bos-block="Hero principal"
data-bos-category="mi-sitio"
data-bos-icon="star-filled"
data-bos-description="Cabecera con imagen de fondo"
data-bos-keywords="portada, banner"
data-bos-align="full">| Attribute | Use |
|---|---|
data-bos-block | Block name in the inserter. |
data-bos-category | Inserter category (by default, the package slug). |
data-bos-icon | Name of a Dashicon without the dashicons- prefix. |
data-bos-description, data-bos-keywords | Description and search keywords. |
data-bos-align | full (default), wide or none. |
data-bos-role | header or footer: global part of the site (see section 7). popup: popup section (see the “Popups” chapter). |
data-bos-component | Root of an interactive component: accordion, tabs, carousel, counter, before-after or a custom one (see the “Interactive components” chapter). |
data-bos-option-<nombre> | Default value of a component option, which the client can change in the editor. |
data-bos-part | Part of a component (trigger, panel, tab, track…). |
data-bos-options | JSON schema of a custom component’s options. |
data-bos-component-name | Component name in the editor panel (optional). |
In this chapter