Hey there,
I am working on slick slider on my theme. I added 4 images with
{{ section.settings.image1 | img_url: 'master' }}
I also tried
{{ block.settings.image1 | img_url: 'master' }}
and created block shema but it doesn’t work.
How can I use block shema for to choose images?
I can paste the codes if you need to check
Hi @PamDigital ,
You need use for loop to get block setting value
{% for block in section.blocks %}
{{ block.settings.image1 | img_url: '1024x' }}
{% endfor %}
Let me know if it’s work.
Thanks
Hello @RajatWeb Thanks for your answer I tried but It doesn’t slide images and shows images as a column. What is wrong here you think?
you can check this - https://shopify.dev/docs/themes/liquid/reference/filters/url-filters
there are different ways to get image size
{{ block.settings.image1 | img_url: '100x100' }}
{{ block.settings.image1 | img_url: '720x720' }}
{{ block.settings.image1 | img_url: '1024x' }}
{{ block.settings.image1 | img_url }}