Choose module
Collection tabs
From the first tab press End then Right. Compare focused tab, selected tab and visible panel after both moves.
Can a slideshow use a different image on mobile?
Disable hero autoplay and check that the collection name and link remain usable. Trace media data, collection reference and overlay styles individually if both image and button disappear.
With the heading unchanged, assigning the collection added its link. Check the destination independently when both the artwork and the button look wrong.
Reproduce the test and inspect the readings
No collection / link the Desk collection. Counts below report occurrences of “href="/desk"” in the two outputs.
- In the order above
- 0 then 1
WESWOO rendered the template body locally with two input fixtures. Shopify form and pagination wrappers and editor schemas were excluded. The comparison checks output branches.
2026-11-24 · LiquidJS 10.21.1 · snippets/ww-hero.liquid
Inspect the source and verification point
snippets/ww-hero.liquid · line 2
<h1 id="Hero-{{ section.id }}">{{ section.settings.heading | escape }}</h1>
<p>{{ section.settings.summary | escape }}</p>
{% if section.settings.poster != blank %}
How the module works
Keep the introduction in readable text
Visitors use the heading and introduction to decide whether to continue. Render heading and summary as text, take the destination from a real collection setting and use an image_picker poster. They can understand and enter the collection before video loads.
Use an appropriate single main H1 for a page hero and adjust heading level when reusing it mid-page. Lettering inside an image can supplement the design but should not be the only source of the heading.
Give poster and video distinct jobs
Let the poster establish a stable first view and provide clear video controls. Introduce motion only when the page needs it and can respect visitor preferences; reduced motion should retain a complete, quiet introduction.
A phone crop can remove the product or copy, so try real long headings in portrait layout rather than simply shrinking a desktop image. If video fails, the poster, message and primary link should still carry the visitor forward.
Example source code
View source fileLIQUID
<section aria-labelledby="Hero-{{ section.id }}">
<h1 id="Hero-{{ section.id }}">{{ section.settings.heading | escape }}</h1>
<p>{{ section.settings.summary | escape }}</p>
{% if section.settings.poster != blank %}
{{ section.settings.poster | image_url: width: 1600 | image_tag: widths: '480, 800, 1200, 1600', sizes: '100vw', loading: 'eager' }}
{% endif %}
{% if section.settings.video != blank %}
{{ section.settings.video | video_tag: controls: true, autoplay: false, preload: 'none' }}
{% endif %}
{% if section.settings.collection != blank %}
<a href="{{ section.settings.collection.url | escape }}">Explore {{ section.settings.collection.title | escape }}</a>
{% endif %}
</section>
Integration and checks
Integration steps
3 stepsStart with readable hero content
Render HTML headings, the poster and a real collection destination first.
Set up video controls
Retain manual video controls and add motion only with explicit preference handling.
Test small screens and reduced motion
Check phone crops, long headings and reduced motion independently of video loading.
Data and dependencies
- heading/summary are text; poster is image_picker.
- video is a Shopify video setting; collection is a collection setting.
Interaction and states
- Show the heading, poster and link first.
- Expose playback controls and avoid forced autoplay.
Before launch
Use this fragment for the main page hero. Use the appropriate heading level for a section further down the page.
Sources and further reading
Further reading
After the Hero Image: Designing Product Imagery That Helps People Understand What They're BuyingScope and licensing
Educational implementations for Shopify themes and Headless projects. Confirm real inputs, interaction states and existing components in a development theme before store acceptance. Missing task-specific WESWOO articles remain unlinked.
Shopify/dawnLicenseShopify-integration theme license; architecture reference without copying the implementation. · 3e9ee2281dc4Shopify/hydrogenLicenseMIT; retain copyright and license when using substantial code. · 9e358a2462baUse an unassigned block, an empty collection and a populated collection. Distinguish a missing card from a visible empty collection and a broken destination.
An unassigned collection block produced no card. Empty references can explain why there are fewer cards than blocks in the editor.
Reproduce the test and inspect the readings
No collection / Desk assigned. Counts below report occurrences of “<article” in the two outputs.
- In the order above
- 0 then 1
WESWOO rendered the template body locally with two input fixtures. Shopify form and pagination wrappers and editor schemas were excluded. The comparison checks output branches.
2026-11-24 · LiquidJS 10.21.1 · snippets/ww-series.liquid
Inspect the source and verification point
snippets/ww-series.liquid · line 5
{% if series != blank %}
<article {{ block.shopify_attributes }}>
<h3><a href="{{ series.url | escape }}">{{ series.title | escape }}</a></h3>
How the module works
Explain the choice beside its name
Choose a real collection in each block so its name, image and destination remain aligned. A maintained selection_summary explains its purpose without requiring shoppers to open several pages just to infer the difference.
Begin with an ordered presentation of links and descriptions. That list already supports discovery; add switching only when layout and page length justify it, rather than letting an effect define the collection structure.
Switch the view while keeping destinations intact
Enhancement needs a clear selection and coordinated content changes. A new heading above a button pointing to the previous collection is especially misleading, so keep destinations attached to their objects.
The current example is a stable link-list baseline. Tabs need complete panel relationships, aria-controls and keyboard movement. Multiple instances must remain independent so the displayed group and its destination stay obvious.
Example source code
View source fileLIQUID
<section aria-labelledby="Series-{{ section.id }}">
<h2 id="Series-{{ section.id }}">Choose a collection</h2>
{% for block in section.blocks %}
{% assign series = block.settings.collection %}
{% if series != blank %}
<article {{ block.shopify_attributes }}>
<h3><a href="{{ series.url | escape }}">{{ series.title | escape }}</a></h3>
<p>{{ series.metafields.custom.selection_summary.value | escape }}</p>
</article>
{% endif %}
{% endfor %}
</section>
Integration and checks
Data and dependencies
- Collection block settings and actual collection objects.
- Collection
custom.selection_summary: single-line text.
Interaction and states
- Keep a readable default and an explicit selected state.
- Switch visibility without replacing destination links.
Before launch
The example is a stable linked-list baseline. A tab enhancement also needs aria-controls, keyboard movement and panel state.
Sources and further reading
Scope and licensing
Educational implementations for Shopify themes and Headless projects. Confirm real inputs, interaction states and existing components in a development theme before store acceptance. Missing task-specific WESWOO articles remain unlinked.
Shopify/dawnLicenseShopify-integration theme license; architecture reference without copying the implementation. · 3e9ee2281dc4Shopify/hydrogenLicenseMIT; retain copyright and license when using substantial code. · 9e358a2462baSwitch from a nondefault tab by keyboard, reload and go Back. Check the expected focus, panel and URL states separately from the sample’s one keypress.
The visible panel and focused link changed together. A page that changes content while leaving focus on the old tab would produce a mismatch.
Reproduce the test and inspect the readings
With two collections, focus the first and send Home or End. Read visible panel / focused link.
- In the order above
- p1 / #p1 then p2 / #p2
WESWOO ran this entry’s published script in standalone Chrome with the fixture markup and records described here.
2026-11-24 · Chrome 157.0.8103.79 · assets/ww-series-tabs.js
Inspect the source and verification point
assets/ww-series-tabs.js · line 21
if (event.key === 'ArrowRight') next = (index+1)%tabs.length;
else if (event.key === 'ArrowLeft') next = (index+tabs.length-1)%tabs.length;
else if (event.key === 'Home') next = 0;
See the WESWOO test and results
Open the file and focus Desk. Press the keys in order. After each key, compare the focused tab with the single visible collection heading.
| Key sequence | Focus / visible panel |
|---|---|
| End | Floor / Floor lamps |
| Right | Desk / Desk lamps |
| Left | Floor / Floor lamps |
| Home | Desk / Desk lamps |
This run used three fixed panels with the keyboard handler active. Verify the product-to-collection mapping separately in the integrated store.
Download the HTML used in this test and open it in a browser
How the module works
Observed result
Pressing End from the first lamp collection moved both focus and content to Floor. Right then wrapped to Desk. Checking both reveals a tab that changes its highlight but leaves the old products on screen.
Treat each collection as a complete panel
Select a collection per section block and keep its image, title, selection_summary and destination in one panel. Change them together when another collection is chosen, without borrowing missing content from the previous group.
Use both section.id and block.id in identifiers so each control finds its own panel. Render all panels in reading order before initialization, with usable anchors. Scripting improves access rather than supplying otherwise unavailable information.
Keep selection, focus and panels aligned
Call bindSeriesTabs(root) after loading the module; exporting a function does not initialize it. Enhancement synchronizes aria-selected, tabindex and panel visibility, with arrow keys and Home and End moving within the collection set.
Visit the last group and return to the first, reading its name and following the collection link. A second section should not affect the first. Clean up bindings on editor reload to avoid repeated handling; without scripting, the ordinary content remains readable.
Example source code
View 2 source filesLIQUID · JS
<section data-ww-series-tabs aria-label="Choose a collection">
<nav data-ww-series-controls aria-label="Collections">
{% for block in section.blocks %}{% assign item = block.settings.collection %}
{% if item != blank %}<a id="SeriesTab-{{ section.id }}-{{ block.id }}" href="#SeriesPanel-{{ section.id }}-{{ block.id }}" data-ww-series-tab>{{ item.title | escape }}</a>{% endif %}
{% endfor %}
</nav>
{% for block in section.blocks %}{% assign item = block.settings.collection %}
{% if item != blank %}
<section id="SeriesPanel-{{ section.id }}-{{ block.id }}" data-ww-series-panel aria-labelledby="SeriesTab-{{ section.id }}-{{ block.id }}" {{ block.shopify_attributes }}>
<h2>{{ item.title | escape }}</h2>
{% if item.image != blank %}{{ item.image | image_url: width: 1000 | image_tag: loading: 'lazy' }}{% endif %}
<p>{{ item.metafields.custom.selection_summary.value | escape }}</p>
<a href="{{ item.url | escape }}">Explore {{ item.title | escape }}</a>
</section>
{% endif %}
{% endfor %}
</section>
export function bindSeriesTabs(root) {
const tabs = [...root.querySelectorAll('[data-ww-series-tab]')];
const panels = tabs.map(tab => root.querySelector(tab.hash));
if (!tabs.length || panels.some(panel => !panel)) return () => {};
root.querySelector('[data-ww-series-controls]').setAttribute('role','tablist');
function activate(index, focus = false) {
tabs.forEach((tab,i) => {
tab.setAttribute('role','tab'); tab.setAttribute('aria-controls',panels[i].id);
tab.setAttribute('aria-selected',String(i === index)); tab.tabIndex = i === index ? 0 : -1;
panels[i].setAttribute('role','tabpanel'); panels[i].hidden = i !== index;
});
if (focus) tabs[index].focus();
}
const click = event => {
const index = tabs.indexOf(event.target.closest('[data-ww-series-tab]'));
if (index < 0) return; event.preventDefault(); activate(index);
};
const keydown = event => {
const index = tabs.indexOf(event.target); if (index < 0) return;
let next;
if (event.key === 'ArrowRight') next = (index+1)%tabs.length;
else if (event.key === 'ArrowLeft') next = (index+tabs.length-1)%tabs.length;
else if (event.key === 'Home') next = 0;
else if (event.key === 'End') next = tabs.length-1;
else return;
event.preventDefault(); activate(next,true);
};
root.addEventListener('click',click); root.addEventListener('keydown',keydown); activate(0);
return () => { root.removeEventListener('click',click); root.removeEventListener('keydown',keydown); panels.forEach(panel => panel.hidden=false); };
}
Integration and checks
Integration steps
3 stepsConfigure the collection panels
Configure collection blocks and render all panels.
Connect the tabs
Call bindSeriesTabs(root) and retain the current theme tab styling.
Test reloads and keyboard use
Clean up before section reload and verify touch, keyboard and no-script paths.
Data and dependencies
- Each section block has a collection setting.
- IDs include
section.idandblock.id; positioning uses selection_summary on the collection.
Interaction and states
- Before enhancement every panel is readable through anchors.
- Enhancement synchronizes selection, tabindex and visibility, including arrows and Home/End.
Before launch
| State | Trigger | Outcome |
|---|---|---|
| Readable sequence | Initialization succeeds | Activate the first panel |
| A collection selected | Click or navigation key | Switch the complete collection panel |
| Script unavailable | Follow anchor | All collections remain readable |
Use the fragment with a real block schema. Its exported initializer must be called by the section entry script.
Sources and further reading
Reference links
Sections and editable modulesCollections and result countsTheme accessibilityShopify/dawn · sections/featured-collection.liquidScope and licensing
Educational implementations for Shopify themes and Headless projects. Confirm real inputs, interaction states and existing components in a development theme before store acceptance. Missing task-specific WESWOO articles remain unlinked.
Shopify/dawnLicenseShopify-integration theme license; architecture reference without copying the implementation. · 3e9ee2281dc4Shopify/hydrogenLicenseMIT; retain copyright and license when using substantial code. · 9e358a2462baWhen the unit price lacks a reference measurement, avoid presenting a unitless comparison. Check a sibling variant and market to ensure total and unit price come from the same item.
A unit price without its measurement produced no unit-price paragraph. Check the unit and reference quantity when the total price appears but its comparison price does not.
Reproduce the test and inspect the readings
Unit price only / price and measurement both supplied. Counts below report occurrences of “ww-unit-price” in the two outputs.
- In the order above
- 0 then 1
WESWOO rendered the template body locally with two input fixtures. Shopify form and pagination wrappers and editor schemas were excluded. The comparison checks output branches.
2026-11-24 · LiquidJS 10.21.1 · snippets/ww-unit-price.liquid
Inspect the source and verification point
snippets/ww-product-card.liquid · line 2
{% assign card_variant = card_product.selected_or_first_available_variant %}
{% assign card_form_id = 'CardProduct-' | append: section.id | append: '-' | append: card_product.id %}
<article>
How the module works
Make the offer identifiable
Render name, image and price from the real product, adding a short verifiable custom.key_spec. The card need not repeat every specification, but should support a decision to open details and agree with that page’s model and currency.
The caller must pass product explicitly. A selected or first available variant is only part of purchase handling; a starting price is not the transaction price of every option. Make the price range clear when specifications affect it.
Use direct add only for an unambiguous choice
Direct add fits an available product with one default variant. Route multi-option products through selection instead of silently adding a colour or capacity. Sold-out items also need a meaningful detail path rather than a nonworking purchase action.
Keep the name and detail link usable with missing images, long titles and form errors. Shoppers should recognize the item they selected. A concise card removes secondary detail without removing the purchasing decision.
Compare different pack sizes on the same basis
Imagine the same coffee sold in a 250g bag for USD 12 and a 1kg bag for USD 40. These are teaching figures. The small bag costs less to buy, while the large bag costs less per kilogram. Showing USD 48/kg and USD 40/kg beneath their selling prices makes that distinction readable without asking shoppers to calculate it. Keep the pack size visible so the quantity they will receive remains clear.
Use a consistent reference measure for the products being compared, such as 1kg. A number per 100g cannot be ranked against a number per 1kg without conversion. A unit price supports quantity-based comparison; flavour, quality and other ownership costs still need their own explanation.
Configure the measurement before adding output
Open the product in Shopify admin and, for multiple pack sizes, open the relevant variant. In Pricing, configure Unit price with the actual total amount and reference measure, then save. Verify each pack separately while keeping the comparison basis consistent. Product-title numbers and shipping weight are not substitutes for confirmed contents measurements. The exact placement of controls follows the current admin interface.
Preview the card, product page and cart in a development theme. Configure and check the existing unit-price display where available; add code only where it is missing, so the price does not appear twice.
Read the amount and measurement from the same object
The supplementary snippet receives an explicit price_item parameter. In this library, a card passes card_variant only when card_product.has_only_default_variant is true. A multiple-pack product keeps its detail-page route; do not put one variant’s unit price beneath a card that never identifies that pack. To support multiple-variant cards, first expose the relevant pack and align its selling price, measurement and destination with that same variant. The product price area passes the page’s current_variant.
Render only when both unit_price and unit_price_measurement are present, formatting with money_with_currency followed by unit_price_with_measurement. Read both from the same object, avoiding browser division or a hard-coded /kg suffix. Omit missing data while retaining the selling price and purchase route. Zero is a valid amount, so a greater-than-zero check would wrongly suppress a free item’s valid unit price.
Inside the cart loop pass the current item, rather than looking up the product’s first variant. Keep item.final_line_price for the line amount: a quantity-based comparison price serves a different purpose. A full page refresh renders the selected pack again. In an asynchronous theme, include the unit-price row in the existing price update, including removing old output when the next variant has no measurement. Updating only the main price leaves a stale comparison.
Follow one pack through to the cart
Check the arithmetic using the two example packs in a development theme, then repeat with approved actual product data. Open variant-specific links, change pack size and add to cart, comparing pack, selling price, unit price and currency. Change the cart quantity and confirm that the line amount changes while the comparison basis remains understandable. Include a product with no measurement data to check for stale numbers or empty rows.
Repeat in target markets and languages, checking currency, units and wrapping. A cart line’s unit price can reflect its discounts. For discounts or selling plans, compare the actual cart and checkout rather than promising future charges from the card price.
Example source code
View 2 source filesLIQUID
{% assign card_product = product %}
{% assign card_variant = card_product.selected_or_first_available_variant %}
{% assign card_form_id = 'CardProduct-' | append: section.id | append: '-' | append: card_product.id %}
<article>
<a href="{{ card_product.url | escape }}">
{% if card_product.featured_image %}
{{ card_product.featured_image | image_url: width: 640 | image_tag: widths: '320, 480, 640', sizes: '(max-width: 749px) 45vw, 25vw', loading: 'lazy' }}
{% endif %}
<h3>{{ card_product.title | escape }}</h3>
</a>
<p>{{ card_product.metafields.custom.key_spec.value | escape }}</p>
<p>{{ card_variant.price | money_with_currency }}</p>
{% if card_product.has_only_default_variant %}
{% render 'ww-unit-price', price_item: card_variant %}
{% endif %}
{% if card_product.has_only_default_variant and card_variant.available %}
{% form 'product', card_product, id: card_form_id %}
<input type="hidden" name="id" value="{{ card_variant.id }}">
<button type="submit">Add to cart</button>
{% endform %}
{% else %}
<a href="{{ card_product.url | escape }}">Choose options and check availability</a>
{% endif %}
</article>
{% if price_item.unit_price != blank and price_item.unit_price_measurement != blank %}
<p class="ww-unit-price">
{{ price_item.unit_price | money_with_currency | unit_price_with_measurement: price_item.unit_price_measurement }}
</p>
{% endif %}
Integration and checks
Data and dependencies
- Product data and selected_or_first_available_variant.
custom.key_speccontains a short verifiable fact.
Interaction and states
- Offer direct add for one available default variant.
- Use the product page for options or unavailable items.
Before launch
Do not present a starting price as the price of every variant. The caller must pass the product object.
Sources and further reading
Reference links
Variants and deep linksShopify native formsResponsive image outputShopify/dawn · snippets/card-product.liquidFurther reading
Product variants: selection, stock and cart consistencyProduct-page architecture: facts, SEO and testingScope and licensing
Educational implementations for Shopify themes and Headless projects. Confirm real inputs, interaction states and existing components in a development theme before store acceptance. Missing task-specific WESWOO articles remain unlinked.
Shopify/dawnLicenseShopify-integration theme license; architecture reference without copying the implementation. · 3e9ee2281dc4Shopify/hydrogenLicenseMIT; retain copyright and license when using substantial code. · 9e358a2462baFollow the evidence link and locate the project, contributor and date behind the claim. A live link does not substantiate a conversion rate without a defined cohort, measure and attribution.
Adding a source URL to the same public record produced its evidence link. A claim can be checked by following the record it cites.
Reproduce the test and inspect the readings
Source URL blank / provided. Counts below report occurrences of “Read the source” in the two outputs.
- In the order above
- 0 then 1
WESWOO rendered the template body locally with two input fixtures. Shopify form and pagination wrappers and editor schemas were excluded. The comparison checks output branches.
2026-11-24 · LiquidJS 10.21.1 · snippets/ww-proof.liquid
Inspect the source and verification point
snippets/ww-proof.liquid · line 8
{% if item.source.value != blank %}
<a href="{{ item.source.value | escape }}">Read the source</a>
{% endif %}
How the module works
Connect each statement to its source
Maintain award year, organization, applicable model and original review link in approved public_evidence records. Use title for the statement, context for its scope and source for the original destination. A badge or image supplements those details rather than replacing them.
Retain attribution for client-provided facts and cases. When a model-specific award appears on a collection page, state its scope so it does not appear to certify every product.
Make the evidence readable before enhancing it
Render complete copy and source links before adding a theme grid or mobile swipe treatment. Evidence remains readable if enhancement fails. Autoplay, if added, needs pause controls without losing access to sources.
Let the real review application own customer-review data and states. A marketing evidence array is not a rating system: awards and quotations cannot automatically generate product stars or customer relationships.
Example source code
View source fileLIQUID
{% assign evidence = shop.metafields.custom.public_evidence.value %}
{% if evidence != blank %}
<ul class="ww-evidence">
{% for item in evidence %}
<li>
<h3>{{ item.title.value | escape }}</h3>
<p>{{ item.context.value | escape }}</p>
{% if item.source.value != blank %}
<a href="{{ item.source.value | escape }}">Read the source</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
Integration and checks
Integration steps
3 stepsRecord the original evidence
Populate real awards, dates, bodies, model scope and original review links.
Keep the sources readable
Retain a static readable list before swipe/pagination enhancement.
Connect review data separately
Use the app-review integration separately and do not turn evidence records into product ratings.
Data and dependencies
- public_evidence:
list.metaobject_reference. - title/context are text and source is an approved URL.
Interaction and states
- Render text and links before enhancement.
- Use an existing theme carousel with pausable autoplay.
Before launch
The fragment renders supplied evidence; it does not generate reviews, ratings or customer relationships.
Sources and further reading
Scope and licensing
Educational implementations for Shopify themes and Headless projects. Confirm real inputs, interaction states and existing components in a development theme before store acceptance. Missing task-specific WESWOO articles remain unlinked.
Shopify/dawnLicenseShopify-integration theme license; architecture reference without copying the implementation. · 3e9ee2281dc4Shopify/hydrogenLicenseMIT; retain copyright and license when using substantial code. · 9e358a2462ba