Create Setting image and show

 {
"type": "image_picker",
"id": "image",
"label": "t:sections.announcement-bar.blocks.announcement.settings.image.label"
},
//show =====================================================================
{%- if block.settings.image != blank -%}
<div class="announcement-bar__image">
<img src="{{ block.settings.image | img_url: 'master' }}" alt="{{ block.settings.text | escape }}" width="" height="">
</div>
{%- endif -%}

Leave a Reply

Your email address will not be published. Required fields are marked *