Skip to content

Instantly share code, notes, and snippets.

Avatar

joe dempsey joe-dempsey

View GitHub Profile
View gist:34f89168ebd231c823e8c90b825682ee
<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 Jun 2, 2020
url generatotr shopify quick and easy / dirty
View gist:25e19a0a962bfc4e63564d6d1ef4d84c
{% 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 Apr 29, 2020
cookies consent on shopify section - quick
View cookies-consent-shopify-section
@joe-dempsey
joe-dempsey / list-all-products.liquid
Created Jan 28, 2020
shopify list all products with image heights - to check validity of image assets on products
View list-all-products.liquid
<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 Jan 28, 2020
shopify list all products with image heights - to check validity of image assets on products
View list-all-products.liquid
<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>
View 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 %}
View gist:59b3282d4c9147a23cc206e6d7d9a0a5
{% 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 Jan 31, 2019
main ad implementation tracking liquid
View mainad.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 %}
View gist:292038852b6f796336e909daedb15cd1
<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>
View gist:a3e18282c907f69d0d70efffe95ed31b
{%- 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 -%}