# Add a remote for and fetch the old repo
git remote add -f theme_name <theme_name repo URL>
# Merge the files from theme_name/master into new/master
git merge theme_name/master
# Move the old_a repo files and folders into a subdirectory so they don't collide with the other repo coming later
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://platform.tumblr.com/v1/share.js"></script> | |
<!-- Containers --> | |
<p id="tumbr_video_share"></p> | |
<p id="tumbr_text_share"></p> | |
<!-- Everlapse Vars --> | |
<script type="text/javascript"> | |
var everlapse_title = 'Walk With Me'; |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task 'deploy', shell.task [ | |
'git checkout master' | |
'git branch -D dist' | |
'git stash' | |
'git checkout -b dist' | |
'rm .gitignore' | |
'git add .gitignore --all' | |
'gulp build', | |
'git add public' | |
'git commit -m "build for release"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*============================================================================ | |
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 - https://github.com/Shopify/shopify-css-import |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if template contains 'product' %} | |
{% assign size_options = 'size,taille' | split: ',' %} | |
{% assign size_chart_text_link = 'Size chart' %} | |
{% assign has_size = false %} | |
{% assign size_index = 0 %} | |
{% for option in product.options %} | |
{% assign downcased_option = option | downcase %} | |
{% if has_size == false and size_options contains downcased_option %} | |
{% assign has_size = true %} | |
{% assign size_index = forloop.index0 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- /templates/page.liquid --> | |
<section class="page page-top"> | |
<div class="wrapper"> | |
<header class="content-util"> | |
{% include 'breadcrumb' %} | |
{% include 'social-icons' %} | |
</header> | |
<header class="page-header"> | |
<h1>{{ page.title }}</h1> | |
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
thumbnails = $('img[src*="/products/"]').not(':first'); | |
if (thumbnails.length) { | |
thumbnails.bind('click', function() { | |
var arrImage = $(this).attr('src').split('?')[0].split('.'); | |
var strExtention = arrImage.pop(); | |
var strRemaining = arrImage.pop().replace(/_[a-zA-Z0-9@]+$/,''); | |
var strNewImage = arrImage.join('.')+"."+strRemaining+"."+strExtention; | |
if (typeof variantImages[strNewImage] !== 'undefined') { | |
productOptions.forEach(function (value, i) { |