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
{% comment %} this code goes at the footer {% endcomment %} | |
{% if template.name == 'product' %} | |
{{ 'option_selection.js' | shopify_asset_url | script_tag }} | |
<style> | |
.selector-wrapper { | |
display: none !important; | |
} | |
</style> | |
<script> |
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
<?php | |
$product = get_product(get_the_ID()); | |
echo $product->post_excerpt; | |
?> |
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
equalheight = function(container){ | |
var currentTallest = 0, | |
currentRowStart = 0, | |
rowDivs = new Array(), | |
$el, | |
topPosition = 0; | |
$(container).each(function() { |
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
// track outbound links | |
// usage <a class="button button_large" href="http://amzn.com/1628651628" rel="external" target="_blank"> | |
function trackOutboundClick(e) { | |
var $link = $(e.currentTarget); | |
var url = $link.attr('href'); | |
var target = $link.attr('target'); | |
ga('send', 'event', 'outbound', 'click', url, { | |
'hitCallback': function() { | |
if (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
/* Alternate characters */ | |
-webkit-font-feature-settings: "ss01"; | |
-moz-font-feature-settings: "ss01" 1; | |
font-feature-settings: "ss01"; | |
/* Common ligatures (ff, fi, ffi, fl, ffl, fj, …) */ | |
-webkit-font-feature-settings: "liga"; | |
-moz-font-feature-settings: "liga" 1; | |
font-feature-settings: "liga"; |
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
<?php | |
// REGISTER CUSTOM POST TYPE FOR SERVICES | |
function team_custom_init() { | |
$labels = array( | |
'name' => _x('Team', 'post type general name'), | |
'singular_name' => _x('Member', 'post type singular name'), | |
'add_new' => _x('Add New', 'member'), | |
'add_new_item' => __('Add New Member'), | |
'edit_item' => __('Edit Member'), | |
'new_item' => __('New Member'), |
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(jQuery.browser.msie){ | |
var version = jQuery.browser.version; | |
switch(version){ | |
case "6.0": | |
jQuery("html").addClass("ie ie6 lte10 lte9 lte8 lte7"); | |
break; | |
case "7.0": | |
jQuery("html").addClass("ie ie7 lte10 lte9 lte8 lte7"); | |
break; | |
case "8.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
if(jQuery.browser.msie){ | |
var version = jQuery.browser.version; | |
switch(version){ | |
case "6.0": | |
jQuery("html").addClass("ie ie6 lte10 lte9 lte8 lte7"); | |
break; | |
case "7.0": | |
jQuery("html").addClass("ie ie7 lte10 lte9 lte8 lte7"); | |
break; | |
case "8.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
<?php | |
// CREATE IPAD AND IPHONE CONDITIONALS | |
function is_ipad() { | |
$is_ipad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad'); | |
if ($is_ipad) | |
return true; | |
else return false; | |
} | |
function is_iphone() { | |
$cn_is_iphone = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPhone'); |
NewerOlder