{%- comment -%} MIT License · (c) 2026 Lintel · https://lintelagency.com/resources/shopify-sections {%- endcomment -%} {%- comment -%} Rich text: eyebrow, headings, text and buttons as blocks in any order, centred or aligned per device, at a narrow, medium or wide measure. Plain background, gradient, or a desktop and mobile background image (each with its focal point) under a colour overlay. No JavaScript. Depends on: snippets/lib-image.liquid, snippets/lib-button.liquid {%- endcomment -%} {%- liquid assign s = section.settings assign eager = false if section.index <= 2 assign eager = true endif assign has_image = false if s.image != blank or s.image_mobile != blank assign has_image = true endif -%}
{{ b.text | escape }}
{%- endif -%} {%- when 'heading' -%} {%- if b.heading != blank -%} {%- assign tag = b.heading_tag | default: 'h2' -%} <{{ tag }} class="lib-rich-text__heading lib-rich-text__heading--{{ b.heading_size }}" {{ block.shopify_attributes }}> {{- b.heading -}} {{ tag }}> {%- endif -%} {%- when 'text' -%} {%- if b.text != blank -%}Share your brand's story, a care note or a short introduction to a collection. Text keeps a comfortable reading width on every screen.
" }, { "type": "select", "id": "text_size", "label": "Text size", "options": [ { "value": "small", "label": "Small" }, { "value": "medium", "label": "Medium" }, { "value": "large", "label": "Large" } ], "default": "medium" } ] }, { "type": "buttons", "name": "Buttons", "limit": 2, "settings": [ { "type": "text", "id": "button_label", "label": "First button label", "default": "Shop the collection" }, { "type": "url", "id": "button_url", "label": "First button link" }, { "type": "select", "id": "button_style", "label": "First button style", "options": [ { "value": "primary", "label": "Solid" }, { "value": "outline", "label": "Outline" }, { "value": "text", "label": "Text link" } ], "default": "primary" }, { "type": "checkbox", "id": "button_new_tab", "label": "Open first link in a new tab", "default": false }, { "type": "text", "id": "button2_label", "label": "Second button label" }, { "type": "url", "id": "button2_url", "label": "Second button link" }, { "type": "select", "id": "button2_style", "label": "Second button style", "options": [ { "value": "primary", "label": "Solid" }, { "value": "outline", "label": "Outline" }, { "value": "text", "label": "Text link" } ], "default": "text" }, { "type": "checkbox", "id": "button2_new_tab", "label": "Open second link in a new tab", "default": false } ] } ], "presets": [ { "name": "Lib · Rich text", "blocks": [ { "type": "eyebrow" }, { "type": "heading" }, { "type": "text" }, { "type": "buttons" } ] } ] } {% endschema %}