Skip to content

Instantly share code, notes, and snippets.

View liamgriffin's full-sized avatar

Liam Griffin liamgriffin

  • Shopify
  • Galway, Ireland
View GitHub Profile
@liamgriffin
liamgriffin / textsection.txt
Last active May 8, 2017 15:06
section for text box
<div id="textsection">
<div class="simpletext">
<h1> {{ section.settings.text-box }} </h1>
<h3> {{ section.settings.text }} </h3>
</div>
</div>
{% schema %}
{
@liamgriffin
liamgriffin / calltoaction-block
Last active May 16, 2017 20:13
Call To Action Block
<div id="section-cta">
<div class="container">
<h3> {{ section.settings.text-box }} </h3>
<a href="{{ section.settings.link }}" class="btn btn--cta">{{ section.settings.linktext }}</a>
</div>
</div>
{% schema %}
{
"name": "Call to action",
"settings": [
{% schema %}
{
"name": "Section name",
"settings": []
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
@liamgriffin
liamgriffin / building-section-blocks-cta
Created May 30, 2017 12:51
building-section-blocks-cta.txt
<hr>
<div id="section-cta">
<div class="section-header text-center">
<h3> {{ section.settings.text-box }} </h3>
</div>
{% for block in section.blocks %}
<div class="btn" id="call-to-action">
<a href="{{ block.settings.link }}" class="btn">{{ block.settings.linktext }}</a>
@liamgriffin
liamgriffin / footer-options
Created May 30, 2017 13:48
footer-options
@liamgriffin
liamgriffin / footer-layout
Created May 30, 2017 14:05
footer-layout
{
"type": "social",
"name": "Social icons",
"limit": 1,
"settings": [
{
"type": "paragraph",
"content": "Edit your social settings and accounts in General settings"
}
]
@liamgriffin
liamgriffin / footer-blocks
Created May 30, 2017 15:05
footer-blocks
@liamgriffin
liamgriffin / social-media-setting-facebook.liquid
Last active February 6, 2020 09:20
How to Add a Social Media Marketing Icon to Your Theme | Existing Social Media Setting
{
"type": "text",
"id": "social_facebook_link",
"label": "Facebook",
"info": "https:\/\/facebook.com\/shopify"
},