Skip to content

Instantly share code, notes, and snippets.

@juanmafla
juanmafla / supply-social-sharing
Created April 9, 2016 15:41 — forked from cshold/supply-social-sharing
A snippet for social sharing buttons in a Shopify theme. Notice the use of theme settings to show/hide each button.
{% comment %}
This snippet is used to showcase each collection during the loop,
'for product in collection.products' in list-collections.liquid.
{% endcomment %}
{% assign shareCountClass = '' %}
{% if template contains 'article' or template contains 'blog' %}
{% capture permalinkURL %}{{ shop.url }}{{ article.url }}{% endcapture %}
@juanmafla
juanmafla / related-products.liquid
Created April 9, 2016 01:57 — forked from carolineschnapp/related-products.liquid
Related Products — to add to product.liquid
@juanmafla
juanmafla / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console