Skip to content

Instantly share code, notes, and snippets.

Building for Shopify

Jonathan Moore jonathanmoore

Building for Shopify
View GitHub Profile

Steps to break one large repo into multiple repos based off of DIRNAME

git filter-branch --prune-empty --subdirectory-filter DIRNAME master

rm -rf .git/refs/original/ && git reflog expire --all &&  git gc --aggressive --prune=now

git clean -fdx

git reflog expire --all --expire-unreachable=0
jonathanmoore / custom.css
Created Apr 28, 2014
Cadence Center Images
View custom.css
Cadence Center Images Added to the Caption/Body of Posts
Paste the following into Customize > Advanced > Custom CSS
article section img {
display: block;
margin: 0 auto;
jonathanmoore / District.scss.liquid
Created Jul 24, 2015
Replace the file in assets/district.scss.liquid
View District.scss.liquid
District Theme v1.0.0
Copyright 2015 Style Hatch Inc.
Author Jonathan Moore @moore
Some things to know about this file:
- Sass is compiled on Shopify's server so you don't need to convert it to CSS yourself
- The output CSS is compressed and comments are removed
- You cannot use @imports in this file
* Use grunt or gulp tasks to enable @imports -
View gist:724092
<section class="ad">
<!-- Insert your ad code -->
<div class="base">
<nav class="pages">
<h4>Extra Box Title</h4>
<p>Paragraph body text</p>
jonathanmoore / gist:740786
Created Dec 14, 2010
Savory Sidebar HTML Template
View gist:740786
<section class="default">
<h4>Title of a new block</h4>
<p>Paragraph talking about the block</p>
<p>Ads could also go here.</p>
<div class="bubble">
<p>add content, facebook like box, etc here in a box identical to the recent updates (twitter) box</p>
<li><a href="">Link to Google</a></li>
<li><a href="">Link to Tumblr</a></li>
View gist:740848
<script type="text/javascript">
jQuery.fn.stripTags = function() {
var r = this.html().replace( /&lt;/g, '<' );
r = r.replace( /&gt;/g, '>' );
r = r.replace( /&amp;/g, '&' );
this.replaceWith( r );
$(document).ready(function() {
$(" .content_wrap strong").stripTags();
View gist:749623
<!-- Beginning of Project Wonderful ad code: -->
<!-- Ad box ID: 52967 -->
<script type="text/javascript">
var pw_d=document;
pw_d.projectwonderful_adbox_id = "52967";
pw_d.projectwonderful_adbox_type = "3";
<script type="text/javascript" src=""></script><script type="text/javascript" src=";type=3&amp;r=6250.&amp;location=http%3A//"></script><table cellpadding="0" border="0" cellspacing="0" width="160" bgcolor="#ffffff"><tbody><tr bgcolor="#ffffff"><td width="160" bgcolor="#ffffff" valign="top" align="center" style="vertical-align:top;"><a href=";_r=" target="_blank"><img src="" width="160" height="600" border="0" title="Join Star Pirates Today!" alt="Join Star Pirates Today!"></a></td></tr><tr><td bgcolor="#ffffff" colspan="1"><center><a style="fo
jonathanmoore / gist:751998
Created Dec 22, 2010
Nova Sidebar Templates
View gist:751998
<section class="ad">
<!-- Insert your ad code -->
<div class="base">
<nav class="pages">
<h4>Extra Box Title</h4>
<p>Paragraph body text</p>
View gist:756310
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6.b - Charcoal Theme
#ffffff; /* white
#696a5c; /* red
#222222; /* dark red
#e5e8bb; /* butter
#696a5c; /* dark butter
View gist:758763
<p>We're your top source for everything fashion, fabulous and fun! Incorporating CHADWICKS, metrostyle and Casual Living into your everyday lifestyle! Presented by the Boston Apparel Group</p>
<h2>Brand 1 Name Title</h2>
<p>Brand description <a href="">link</a></p>
<h2>Brand 2 Name Title</h2>
<p>Brand description <a href="">link</a></p>
<h2>Brand 3 Name Title</h2>
<p>Brand description <a href="">link</a></p>
You can’t perform that action at this time.