Skip to content

Instantly share code, notes, and snippets.

@loughlincodes
Last active May 20, 2019 10:51
Show Gist options
  • Save loughlincodes/6ec5686d188b5cd820306aa862333812 to your computer and use it in GitHub Desktop.
Save loughlincodes/6ec5686d188b5cd820306aa862333812 to your computer and use it in GitHub Desktop.
Shopify Sections Blocks
{% for block in section.blocks %}
<div class="list">
<h4>{{ linklists[block.settings.footer_menu].title }}</h4>
<ul>
{% for link in linklists[block.settings.footer_menu].links %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
{% endfor %}
</ul>
</div> <!-- end list -->
{% endfor %}
{% schema %}
{
"name": "Footer",
"max_blocks": 4,
"settings": [
{
"type":"header",
"content":"Footer Details"
},
{
"type":"richtext",
"id": "footeraddress",
"label":"Footer Address"
},
{
"type":"text",
"id": "footeremail",
"label":"Footer Email"
}
],
"blocks": [
{
"type": "navigation",
"name": "Navigation Menu",
"settings": [
{
"type": "link_list",
"id": "footer_menu",
"label": "Footer Menu"
}
]
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment