Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
hi everyone
this is schema
{% schema %}
{
"name": "Third section",
"settings": [
{
"id" : "myfav",
"type" : "text",
"label" : "top left heading"
},
{
"id" : "myshop",
"type" : "text",
"label" : "top right heading"
}
],
"blocks": [
{
"type": "image_picker",
"name" : "Image Slide",
"settings" :[
{
"id" : "textone",
"type" : "text",
"label" : "Text"
},
{
"id" : "imageone",
"type" : "image_picker",
"label" : "Image right"
},
{
"id" : "collection",
"type" : "collection",
"label" : "collection"
}
]
}
],
"presets": [
{
"name": "Top Banner",
"category": "Custom Sections"
}
]
}
{% endschema %}
this is condition
<span class="image_arrows_1">{% if block.settings.textone==blank %} {% elsif collections[block.settings.collection].title %}{{collections[block.settings.collection].title}}{{ collection.title }}{% endif %}</span>
you can see in the picture over the water text can change to Ahmad58
anyone help me to condition
Solved! Go to the solution
This is an accepted solution.
Hi @Shuja5developer,
Please change code:
<span class="image_arrows_1">
{% if block.settings.textone != blank %}
{{ block.settings.textone }}
{% elsif collections[block.settings.collection].title %}
{{collections[block.settings.collection].title}}{{ collection.title }}
{% endif %}
</span>
Hope it helps!
Hello,
Yes your schema is nicely formatted, now you need to put it into assets (in theme).
Then call it like {{ assetname.xxx }}, it would be a good asset start
Have fun with Shopify,
This is an accepted solution.
Hi @Shuja5developer,
Please change code:
<span class="image_arrows_1">
{% if block.settings.textone != blank %}
{{ block.settings.textone }}
{% elsif collections[block.settings.collection].title %}
{{collections[block.settings.collection].title}}{{ collection.title }}
{% endif %}
</span>
Hope it helps!
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025