Theme Settings

Select Setting Condition

Using a dropdown select setting to change layout logic.

Copy or embed this snippet

{% if section.settings.alignment == 'center' %}
  <div class="text-center">
{% else %}
  <div class="text-left">
{% endif %}

Embed this snippet on your blog or docs — attribution link appreciated: HTMLToLiquid Converter · Convert to Shopify section →

Generate Shopify sections

Free AI-powered converter — OS 2.0 compatible output with schema validation.

Start converting HTML