{%- comment -%} Section published at https://sections.design/blogs/shopify/faq-rich-snippets-section Get the latest version: https://github.com/mirceapiturca/Sections/tree/master/FAQ {%- endcomment -%} {%- comment -%} ---------------- THE CSS ---------------- {%- endcomment -%} {%- assign id = '#shopify-section-' | append: section.id -%} {% style %} {{ id }} { background: {{ section.settings.background_color }}; --panel-bg: {{ section.settings.panel_color }}; --border-color: {{ section.settings.border_color }}; --question-color: {{ section.settings.q_color }}; --answer-color: {{ section.settings.a_color }}; {%- assign min = section.settings.q_size_small -%} {%- assign max = section.settings.q_size_large -%} {%- assign min_rem = min | append: 'rem' -%} {%- assign max_rem = max | append: 'rem' -%} --title-font-size: clamp({{ min_rem }}, calc({{ min_rem }} + ({{ max }} - {{ min }}) * ((100vw - 25rem) / (64 - 25))), {{ max_rem }}); } {% endstyle %} {%- comment -%} ---------------- THE MARKUP ---------------- {%- endcomment -%}
FAQ content
" } ] } ], "presets": [ { "name": "FAQ" } ] } {% endschema %} {%- comment -%} ------------------ THE JS ----------------- {%- endcomment -%} {%- comment -%} ---------------- THE NO-JS ---------------- {%- endcomment -%} {%- comment -%} ---------------- THE EDITOR ------------------ {%- endcomment -%} {%- if request.design_mode -%} {%- endif -%}