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 is a barebones menu with submenu items for Shopify {% endcomment %} | |
{% comment %} see shopify docu for creating submenu items: https://help.shopify.com/manual/sell-online/online-store/menus-and-links#create-a-drop-down-menu {% endcomment %} | |
{% comment %} first assign the menu - this is the only thing you need to change {% endcomment %} | |
{% assign linklist = settings.collections_nav %} | |
{% comment %} in the above line change the collections_nav to the handle of your main naivgation {% endcomment %} | |
{% comment %} the code below will do the rest {% endcomment %} |
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
{% assign current_variant = product.selected_or_first_available_variant %} | |
<div id="richsnippet"> | |
<div itemscope itemtype="http://schema.org/Product"> | |
<meta itemprop="url" content="{{ shop.url }}{{ product.url }}"> | |
<meta itemprop="image" content="{{ product.featured_image.src | img_url: 'grande' }}"> | |
<meta itemprop="name" content="{{ product.title | escape }}"> | |
<meta itemprop="description" content="{{ product.description | strip_html }}"> | |
{% if product.vendor %}<meta itemprop="brand" content="{{ product.vendor }}">{% endif %} |
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 article.image.size > 0 %} | |
# show featured image | |
{% else %} | |
{% if article.content contains "<img" %} | |
{% assign src = article.content | split: 'src="' %} | |
{% assign src = src[1] | split: '"' | first %} | |
<img src="{{ src }}" alt="{{ article.title }}"> | |
{% endif %} | |
{% endif %} |
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
{% assign send_to_cart = true %} | |
{% assign send_to_checkout = false %} | |
{% for tag in product.tags %} | |
{% if tag contains "no__redirect" %} | |
{% assign send_to_cart = false %} | |
{% endif %} | |
{% if tag contains "send_to_checkout" %} | |
{% assign send_to_checkout = true %} | |
{% endif %} |
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 %} | |
we need a way to loop through tags to display a different blog template for tagged posts as to the general overview/archive page | |
doesn't seem like there's an easy way to do this but there is. | |
there are tow options: | |
{% endcomment %} | |
{% if current_tags %}...{% else %}...{% endif %} |
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 %} | |
add assets in head and trigger in footer | |
page.faq needs {% section 'faq' %} | |
below is that section content. | |
{% endcomment %} | |
<div class="ui accordion"> | |
{% for block in section.blocks %} |
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 data-section-id="{{ section.id }}" id="mysection_{{ section.id }}" class="richtext-custom-section contain-full-width no-padding "> | |
{% for block in section.blocks %} | |
{% capture thecycle %}{% cycle 'odd', 'even' %}{% endcapture %} | |
{% if thecycle == 'odd' %} | |
<div class="odd_block"> | |
<div class="one-half-custom odd_img "> | |
{% if block.settings.custom_image %} | |
<img src="{{ block.settings.custom_image | img_url: '2048x' }}" /> | |
{%endif%} |
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
{%- assign og_title = page_title -%} | |
{%- assign og_url = canonical_url -%} | |
{%- assign og_type = 'website' -%} | |
{%- assign og_description = page_description | default: shop.description | default: shop.name -%} | |
{% comment %} | |
Template specific overides | |
{% endcomment %} | |
{%- if template.name == 'product' -%} | |
{%- assign og_title = product.title | strip_html -%} |
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
<article class="site-page page-{{ page.handle }}" data-template-page> | |
<header class="page-masthead"> | |
<h1 class="page-title"> | |
page displaying image sizes for all products | |
</h1> | |
</header> | |
<ul> |
NewerOlder