Shopify themes, liquid, logos, and UX
Block Access
{% for block in section.blocks %}
{% if block.type == 'text_align' %}
{{ block.settings.text_align }}
{% endif %}
{% endfor %}
Block Write in schema
{% schema %}
{
"name": "Hero Slider",
"blocks": [
{
"name": "Text Align",
"type": "text_align",
"settings": [
{
"type": "select",
"id": "text_align",
"label": "Text alignment",
"default": "left",
"options": [
{
"value": "left",
"label": "Left"
},
{
"value": "center",
"label": "Center"
},
{
"value": "right",
"label": "Right"
}
]
}
]
}
]
}
{% endschema %}
I could understand what you said. But I want to access the text_align id in my CSS property. So, I can change the text-align dynamically. That's my point.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025