I have been battling this logo list issue for two days. I finally got the code done to show the logo list but now the logos aren’t showing. Please can someone help urgently!
This is the code
{%- assign heading = section.settings.title -%}
{% assign logo_opacity = section.settings.logo_opacity | times: 0.01 %}
{{ heading }}
{%- endif -%}{{ text }}
{%- endif -%}{%- if logo != blank -%}
{%- else -%}{%- if block.settings.image_link != blank %}{% endif %}
{% schema %}
{
“name”: “Logo list”,
“max_blocks”: 25,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Logo list”
},
{
“type”: “color”,
“id”: “bg_color”,
“label”: “Background”,
“default”: “#fafafa”
},
{
“type”: “range”,
“id”: “logo_opacity”,
“label”: “Logo opacity”,
“info”: “Inactive logo opacity”,
“unit”: “%”,
“min”: 5,
“max”: 100,
“step”: 5,
“default”:50
}
],
“blocks”: [
{
“type”: “logo-item”,
“name”: “Logo item”,
“settings”: [
{
“type”: “image_picker”,
“id”: “logo”,
“label”: “Logo”
},
{
“type”: “textarea”,
“id”: “text”,
“label”: “Text”,
“default”: “Include a brief quote or a description of your relationship with the brand.”
},
{
“type”: “url”,
“id”: “image_link”,
“label”: “Image link”
}
]
}
],
“presets”: [
{
“name”: “Logo list”,
“category”: “Image”,
“blocks”: [
{
“type”: “logo-item”
},
{
“type”: “logo-item”
},
{
“type”: “logo-item”
},
{
“type”: “logo-item”
},
{
“type”: “logo-item”
},
{
“type”: “logo-item”
}
]
}
]
}
{% endschema %}
