Skip to content

Instantly share code, notes, and snippets.

@schaeken
schaeken / collection-sidebar.liquid
Last active September 6, 2017 17:55
Supply's 'advanced tag filtering' with more control of the listing order AND view more functionality
<div class="grid-uniform">
{% if settings.manual_group %}
{% assign group_array = settings.manual_group_array | split: ',' %}
{% for group in group_array %}
{% if cat_array contains group %}
{% capture array %}{% unless array == blank or array == "" %}{{ array }},{% endunless %}{{group | strip}}{% endcapture%}
{% endif %}
{% endfor%}
{% assign cat_array = array | split:',' %}
{% endif %}
@carolineschnapp
carolineschnapp / gist:031393b49c8bf0e95ab9
Last active June 21, 2021 20:39
Checkout Theme Settings Sassy CSS variable declerations
/* Checkout theme settings */
// Theme Settings - Checkout
$checkout_use_header_image: {{ settings.checkout_use_header_image }}; // boolean
// checkout_header_image.png // file
$checkout_banner_background_color: {{ settings.checkout_banner_background_color }}; // color
$checkout_logo: {{ settings.checkout_use_logo_image }}; // 3 possible values: 'logo.png', 'checkout_logo.png' or ''.
$checkout_headline: "{{ settings.checkout_headline }}"; // text
$checkout_accent_color: {{ settings.checkout_accent_color }}; // color
@carolineschnapp
carolineschnapp / gist:5c42335e2b50741d18f1
Last active June 21, 2021 20:39
Checkout Next Theme Settings Starter
<fieldset data-overrides-fieldset="checkout">
<legend>Checkout</legend>
<table>
<tr>
<td colspan="2">
<h3>Banner</h3>
</td>
</tr>
<tr class="horizontal">
<th>