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
<!--Lazy Loading --> | |
{{ "lazysizes.min.js" | asset_url | script_tag }} | |
<style>.lazyload,.lazyloading{opacity:0}.lazyloaded{opacity:1;transition:opacity.3s}</style> | |
<!--Lazy Loading --> |
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 first_time_accessed %}<script> | |
window.dataLayer = window.dataLayer || []; | |
var shipping_price = '{{shipping_price | money_without_currency }}'; | |
shipping_price = shipping_price.replace(",", "."); | |
var total_price = '{{total_price | money_without_currency }}'; | |
total_price = total_price.replace(",", "."); | |
var tax_price = '{{tax_price | money_without_currency }}'; | |
tax_price = tax_price.replace(",", "."); | |
window.dataLayer.push({ | |
'page_type': 'purchase', |
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
/* My custom css */ | |
@font-face { | |
font-family: "bubbleshine"; | |
src: url("BubbleShine.woff2") format("woff2"), | |
url("BubbleShine.woff2") format("woff2"); | |
} | |
.mega-title--large { |
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
<a href="{{ routes.root_url }}" class="site-header__logo-image{% if section.settings.align_logo == 'center' %} site-header__logo-image--centered{% endif %}"> | |
{% capture image_size %}{{ section.settings.logo_max_width | escape }}{% endcapture %} | |
<img src="{{ 'logo.svg' | asset_url }}" | |
alt="{{ shop.name }}" | |
style="max-width: {{ image_size }}px;"> | |
</a> | |
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
//Copy and paste the code below into your product.liquid | |
// Following code will display field as required + Will show in checkout page | |
<p class="line-item-property__field"> | |
<label for="your-name">Your name</label> | |
<input required class="required" id="your-name" type="text" name="properties[Your name]"> | |
</p> |
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
At bottom of the product.liquid file, paste the following code: | |
{% if product.options.size == 1 %} | |
<script> | |
var product_variants_removed = [ | |
{%- for variant in product.variants -%} | |
{%- unless variant.available -%} | |
`{{ variant.title }}`, | |
{%- endunless -%} | |
{%- endfor -%} |