Custom code for page picture not linking with URL

New Member
1 0 0

Hello everyone,

I am an amateur, and still learning. I attempted to modify a page on www.inyourspaceboutique.com > Contributions to Humanity, and well... I managed to add the pictures, the links are not working for it. Any advice? 

<h3>{{section.settings.heading}}</h3>
<p>{{section.settings.description}}</p>
 
{%for block in section.blocks %}
<img src="{{block.settings.image | img_url:'master'}}"/>
 
 
{%endfor%}
{% schema %}
 
  {
    "name": "Icons with text above",
    "settings": [
{"type":"text",
"label":"your headline for the section",
"id":"heading"
},
{"type":"richtext",
"label":"your description",
"id":"description"
}
],
"blocks" : [
{
"type":"image",
"name":"image block",
"settings":[
{
"type":"image_picker",
"label":"your image",
"id":"image"
},
{
          "type": "url",
          "id": "image_link",
          "label": "Image link"
        }
]
}
]
 
  }
{% endschema %}
 
0 Likes