# Core sections and blocks

Sections and blocks the platform ships to every theme, with their settings.

<!-- Generated by `bin/console app:dev:reference` from the platform code and docs/dev/_data/. Do not edit by hand. -->

These files live in the platform, under every theme. They work in any theme because they style themselves only with the [brand tokens](../themes/platform-pages.md#brand-tokens). A theme changes how one looks by shipping a file with the **same name** - `sections/faq.twig` replaces the core `faq` - and then the core CSS of that section is not loaded. See [Sections and blocks](../themes/sections-and-blocks.md#the-core-library).

## Sections

### `banner`

A wide image band with a heading, text and a button over or beside the picture.

Blocks: `@theme`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `image` | `image_picker` |  | Background image |
| `height` | `range` | `420` | Height |
| `overlay` | `range` | `40` | Overlay |
| `align` | `select` | `"center"` | Alignment |

### `callout`

A highlighted box for a short message - a guarantee, a note, a promise.

Blocks: `@theme`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `background` | `select` | `"soft"` | Background |
| `align` | `select` | `"center"` | Alignment |
| `spacing` | `range` | `56` | Spacing |

### `contact-form`

A heading and text with the platform's contact form (`form('contact')`). Fields and consents are set in the store settings.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `heading` | `text` | `"Contact us"` | Heading |
| `text` | `textarea` | `"Questions about an order or a product? Write to us - we reply by e-mail."` | Text |
| `button_label` | `text` |  | Button label |

### `content`

A plain content band - text, images, lists. The default section of a new page.

Blocks: `@theme`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `width` | `select` | `"normal"` | Width |
| `background` | `select` | `"none"` | Background |
| `spacing` | `range` | `40` | Spacing |

### `faq`

A heading with questions shown as `<details>`, without JavaScript, and optional FAQ structured data.

Blocks: `faq-item`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `number` | `text` |  | Section number |
| `heading` | `text` | `"Frequently asked questions"` | Heading |
| `text` | `textarea` |  | Text |
| `layout` | `select` | `"split"` | Layout |
| `schema_markup` | `checkbox` | `true` | Add FAQ structured data for Google |
| `background` | `select` | `"none"` | Background |

### `hero-tiles`

A hero with heading, text and button, beside two to six tiles (block `tile`) leading to categories, campaigns or offers.

Blocks: `tile`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `heading` | `text` | `"Everything you need in one place"` | Heading |
| `text` | `textarea` |  | Text |
| `button_label` | `text` | `"Shop now"` | Button label |
| `button_url` | `text` | `"/categories/all/"` | Button URL |
| `background` | `select` | `"soft"` | Background |

### `logo-wall`

A band of logos the merchant uploads (block `logo`) - partners, press, certificates, payment methods.

Blocks: `logo`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `heading` | `text` |  | Heading |
| `columns` | `range` | `6` | Columns |
| `grayscale` | `checkbox` | `true` | Grayscale until hovered |
| `background` | `select` | `"none"` | Background |

### `media-text`

An image or video beside text, either side.

Blocks: `@theme`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `image` | `image_picker` |  | Image |
| `side` | `select` | `"start"` | Image side |
| `background` | `select` | `"none"` | Background |
| `spacing` | `range` | `40` | Spacing |

### `newsletter`

Newsletter sign-up of the store with double opt-in. Works without JavaScript and sends in the background with it.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `heading` | `text` | `"Subscribe to our newsletter"` | Heading |
| `text` | `textarea` | `"News, offers and tips - no more than once a week."` | Text |
| `placeholder` | `text` | `"Your e-mail address"` | Field placeholder |
| `button_label` | `text` | `"Subscribe"` | Button label |
| `note` | `richtext` |  | Note under the form |
| `background` | `select` | `"accent"` | Background |

### `placeholder-section`

Stands in for a section type the current theme does not know, keeping its settings until the type is back.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `type` | `text` |  | Type |

### `post-list`

The latest blog posts of the store as cards.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `heading` | `text` | `"From the blog"` | Heading |
| `limit` | `range` | `3` | Number of posts |
| `columns` | `range` | `3` | Columns |
| `show_excerpt` | `checkbox` | `true` | Show excerpt |
| `show_date` | `checkbox` | `false` | Show date |
| `background` | `select` | `"none"` | Background |
| `link_label` | `text` | `"All posts"` | Link label |
| `link_url` | `text` | `"/blog/"` | Link URL |

### `product-list`

Offers from a source - newest, bestsellers, sale or a store category - as a grid or a carousel. Cards come from the theme's `product-card` snippet.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `heading` | `text` | `"Bestsellers"` | Heading |
| `text` | `text` |  | Subheading |
| `source` | `select` | `"bestsellers"` | Products |
| `category` | `category` |  | Category |
| `limit` | `range` | `8` | Number of products |
| `layout` | `select` | `"carousel"` | Layout |
| `columns` | `range` | `5` | Columns |
| `background` | `select` | `"none"` | Background |
| `link_label` | `text` |  | Link label |
| `link_url` | `text` |  | Link URL |

### `term-grid`

Values of a feature page - authors, publishers, brands - as portraits or a logo band.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `heading` | `text` | `"Featured authors"` | Heading |
| `feature` | `text` | `"authors"` | Feature page address |
| `terms` | `textarea` |  | Values to show |
| `limit` | `range` | `12` | Number of values |
| `with_image` | `checkbox` | `true` | Only values with a photo or logo |
| `style` | `select` | `"portraits"` | Style |
| `columns` | `range` | `6` | Columns |
| `background` | `select` | `"none"` | Background |
| `link_label` | `text` | `"See all"` | Link label |
| `link_url` | `text` |  | Link URL |

### `testimonials`

The latest published store reviews (never filtered by rating), or quotes entered as `testimonial` blocks.

Blocks: `testimonial`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `heading` | `text` | `"What customers say"` | Heading |
| `text` | `text` |  | Subheading |
| `source` | `select` | `"reviews"` | Source |
| `reviews` | `store_reviews` |  | Reviews |
| `note` | `text` | `"Reviews marked ✓ come from verified purchases in our store."` | Note under reviews |
| `columns` | `range` | `3` | Columns |
| `background` | `select` | `"soft"` | Background |

## Blocks

### `button`

A link styled as a button.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `label` | `text` | `"Button"` | Label |
| `url` | `url` |  | Link |
| `style` | `select` | `"primary"` | Style |
| `align` | `select` | `"start"` | Alignment |

### `columns`

Columns - their number follows the blocks inside, the setting changes proportions and gap.

Blocks: `@theme`.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `ratio` | `select` | `"equal"` | Proportions |
| `gap` | `range` | `24` | Gap |
| `stack` | `checkbox` | `true` | Stack on mobile |

### `divider`

A horizontal rule.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `style` | `select` | `"line"` | Style |

### `faq-item`

One question and answer of the `faq` section.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `question` | `text` |  | Question |
| `answer` | `richtext` |  | Answer |
| `open` | `checkbox` | `false` | Open by default |

### `heading`

A heading. The merchant picks the level; `h1` is left to the page title.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `text` | `text` | `"Heading"` | Text |
| `level` | `select` | `"h2"` | Level |
| `align` | `select` | `"start"` | Alignment |

### `html`

The merchant's own HTML, sanitised when saved - no scripts or event handlers.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `code` | `textarea` |  | Code |

### `image`

An image from the media library with optional link and caption.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `image` | `image_picker` |  | File |
| `alt` | `text` |  | Alternative text |
| `caption` | `text` |  | Caption |
| `url` | `url` |  | Link |
| `width` | `select` | `"content"` | Width |

### `list`

A bulleted, numbered or check-mark list; one line is one item.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `items` | `textarea` | `"First\nSecond"` | Items (one per line) |
| `style` | `select` | `"bulleted"` | Style |

### `logo`

One logo of the `logo-wall` section.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `image` | `image_picker` |  | Logo |
| `alt` | `text` |  | Name (alternative text) |
| `url` | `text` |  | Link |

### `paragraph`

Formatted text from the editor, sanitised when saved.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `text` | `richtext` | `"<p>Text</p>"` | Content |
| `size` | `select` | `"md"` | Size |

### `placeholder`

Stands in for a block type the current theme does not know.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `type` | `text` |  | Type |

### `quote`

A quotation with an optional author.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `text` | `textarea` | `"Quote"` | Text |
| `author` | `text` |  | Author |

### `spacer`

Vertical space.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `size` | `range` | `32` | Height |

### `testimonial`

One quote of the `testimonials` section.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `quote` | `textarea` |  | Quote |
| `name` | `text` |  | Name / caption |
| `rating` | `range` | `` | Stars |
| `photo` | `image_picker` |  | Photo |

### `tile`

One tile of the `hero-tiles` section.

| Setting | Type | Default | Label |
| --- | --- | --- | --- |
| `title` | `text` |  | Title |
| `text` | `text` |  | Text |
| `url` | `text` |  | Link |
| `image` | `image_picker` |  | Image |
| `tone` | `select` | `"light"` | Style |

