Skip to content

Instantly share code, notes, and snippets.

View joe-dempsey's full-sized avatar

joe dempsey joe-dempsey

View GitHub Profile
<div><iframe src="https://player.vimeo.com/video/435851173" style="position:absolute;top:0;left:0;width:50%;height:50%;" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
<p><a href="https://vimeo.com/435851173">vleaf go tester</a> from <a href="https://vimeo.com/user119044674">PuffitupTv</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
@joe-dempsey
joe-dempsey / gist:25e19a0a962bfc4e63564d6d1ef4d84c
Created June 2, 2020 07:51
url generatotr shopify quick and easy / dirty
{% layout none %}
<!-- collection urls -->
<!-- collection urls -->
{%- for collection in collections -%}
eu.customplugs.com/{{ collection.url }}<br/>
{% endfor %}
<!-- article urls -->
<!-- article urls -->
@joe-dempsey
joe-dempsey / cookies-consent-shopify-section
Created April 29, 2020 11:59
cookies consent on shopify section - quick
@joe-dempsey
joe-dempsey / list-all-products.liquid
Created January 28, 2020 13:48
shopify list all products with image heights - to check validity of image assets on products
<article class="site-page page-{{ page.handle }}" data-template-page>
<header class="page-masthead">
<h1 class="page-title">
page displaying image sizes for all products
</h1>
</header>
<ul>
@joe-dempsey
joe-dempsey / list-all-products.liquid
Created January 28, 2020 13:48
shopify list all products with image heights - to check validity of image assets on products
<article class="site-page page-{{ page.handle }}" data-template-page>
<header class="page-masthead">
<h1 class="page-title">
page displaying image sizes for all products
</h1>
</header>
<ul>
@joe-dempsey
joe-dempsey / menu shopify nested
Created April 25, 2019 12:35
menu shopify nested
<ul class="parent">
{% for link in linklists.main-menu.links %}
<li><a href="{{ link.url }}">{{ link.title }}</a>
{% if link.links != blank %}
<ul class="child">
{% for child_link in link.links %}
<li><a href= "{{ child_link.url }}">{{ child_link.title }}</a>
{% if child_link.links != blank %}
<ul class="grandchild">
{% for grandchild_link in child_link.links %}
@joe-dempsey
joe-dempsey / gist:59b3282d4c9147a23cc206e6d7d9a0a5
Created March 6, 2019 18:43
split products on collections
{% for product in collection.products %}
{% assign split_product = false %}
{% unless product.tags contains "hidden_on_store" %}
{% for tag in product.tags %}
{% if tag contains 'split_to_variants' %} {% assign split_product = true %} {% break %} {% endif %}
{% endfor %}
{% if split_product == true %}
@joe-dempsey
joe-dempsey / mainad.liquid
Created January 31, 2019 12:37
main ad implementation tracking liquid
<!---------------------------below code to go in theme ---------------------------------- -->
<!---------------------------below code to go in theme ---------------------------------- -->
<!---------------------------below code to go in theme ---------------------------------- -->
{% capture url %}{{ shop.domain }}{% endcapture %}
{% capture collectionsList %}{% for collection in product.collections %}{{ collection.title | strip | strip_html | escape }}|,;{% endfor %}{% endcapture %}
{% capture stock %}{% if product.available %}1{% else %}0{% endif %}{% endcapture %}
<script type="text/javascript">var ssaUrl = ('https:' == document.location.protocol ? ‘https://' : ‘http://') + 'centro.pixel.ad/iap/7e817b12f729e9ce';new Image().src = ssaUrl;</script>
<script type=“text/javascript"> new Image().src = '//clickserv.pixel.ad/conv/dd56a61f3483c82e'; </script>
@joe-dempsey
joe-dempsey / gist:a3e18282c907f69d0d70efffe95ed31b
Created September 12, 2018 13:14
social meta shopify example
{%- assign og_title = page_title -%}
{%- assign og_url = canonical_url -%}
{%- assign og_type = 'website' -%}
{%- assign og_description = page_description | default: shop.description | default: shop.name -%}
{% comment %}
Template specific overides
{% endcomment %}
{%- if template.name == 'product' -%}
{%- assign og_title = product.title | strip_html -%}