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> | |
// (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: mllegeorgesand@gmail.com | |
// See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus | |
// Modified by Jonathan Moore (Style Hatch) https://github.com/jonathanmoore | |
/* | |
Updated to work with sectioned themes | |
- Added required methods from the deprecated options_selection.js | |
- Triggers an initial variant change | |
- Hides sold out variants with only one option |
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
<div class="grid"> | |
<div class="grid__item one-half medium-down--one-whole"> | |
<p>One Half<br> | |
One Whole (medium down)</p> | |
</div> | |
<div class="grid__item one-half medium-down--one-whole"> | |
<p>One Half<br> | |
One Whole (medium down)</p> | |
</div> | |
<div class="grid__item one-quarter large--one-half medium-down--one-whole"> |
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 type="text/javascript"> | |
window.addEventListener('DOMContentLoaded', function() { | |
(function ($) { | |
var $instagramSection = $('.instagram-collection'); | |
var loadImages = function($container, data, imageCount){ | |
for (var i = 0; i < imageCount; i++) { | |
var images = data.data[i].images, | |
// Thumbnail | |
thumbnail = images.thumbnail.url, | |
thumbnailWidth = images.thumbnail.width, |
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
--- | |
version: 1.0 | |
domains: | |
- district-theme-demo.myshopify.com | |
url_patterns: | |
- district-theme-demo.myshopify.com/* | |
timestamp: '2018-08-01T18:42:49Z' | |
id: tbc9 | |
redirect_url: https://district-theme-demo.myshopify.com/ | |
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome |
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
--- | |
version: 1.0 | |
domains: | |
- www.shopify.com | |
url_patterns: | |
- www.shopify.com/* | |
timestamp: '2018-08-01T18:53:00Z' | |
id: q7k_ | |
redirect_url: https://www.shopify.com/ | |
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome |
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
--- | |
version: 1.0 | |
domains: | |
- www.shopify.com | |
url_patterns: | |
- www.shopify.com/* | |
timestamp: '2018-08-01T18:54:29Z' | |
id: vytH | |
redirect_url: https://www.shopify.com/ | |
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome |
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
var links = document.links; | |
for (var i = 0, linksLength = links.length; i < linksLength; i++) { | |
if (links[i].hostname != window.location.hostname) { | |
links[i].target = '_blank'; | |
} | |
} |
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
Change to make in theme.liquid | |
It adds a canonical tag for tag-filtered pages, back to the base collection/blog page. | |
*** Find this is the standard canonical tag code: *** | |
<link rel="canonical" href="{{ canonical_url }}" /> | |
*** Completely replace it with this: *** |
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
.collection aside nav.tags ul { | |
max-height: 300px; | |
overflow: scroll; | |
} | |
.collection aside nav.tags li { | |
display: block; | |
} | |
.collection aside nav.tags li a { | |
background: transparent; | |
box-shadow: none; |