Case study 01
HTML Hero Section → Shopify Section
Convert a static hero with heading, subtext, CTA button, and background image into a merchant-editable OS 2.0 section with scoped CSS.
Project context
Anonymized DTC or agency client handoff — design arrives as static HTML for a homepage hero band. Client name not disclosed; pattern repeated across fashion, beauty, and wholesale storefronts.
Problem
Design handoffs arrive as static HTML with hardcoded text, image URLs, and inline styles. Merchants need to edit headlines, swap hero images, and update CTA links without developer intervention.
Approach
- Paste hero HTML into the converter workspace.
- Use Flat export mode for a single-instance hero layout.
- Review generated section.settings for heading, body text, image_picker, and url fields.
- Validate scoped CSS uses section.id to avoid theme conflicts.
- Add presets so merchants can insert the section from the theme editor.
Implementation details
Export produces section.liquid with {% schema %} JSON: text settings for eyebrow, heading, and subcopy; image_picker for background media; url settings for primary CTA. CSS wraps under a section-scoped class using section.id. Preset seeds copy from the approved design so the theme editor preview matches the handoff before merchant edits.
Practical takeaway
Heroes are the fastest win for Flat mode — one instance, fixed layout, high merchant edit frequency. Always verify image_picker blank states and CTA url fields in the theme editor before merge.