Examples
Tested Sneferu theme examples: hero, product card, grid, header, product page, cart, collection page and a localized section, each with a live preview.
On this page
Short, tested examples you can copy into a Sneferu theme. Each one is a real file from the starter theme, with the code, a live preview, the settings you can change and a few lines on how it works.
Hero section
A big heading, a line of text and a button over a coloured band, with an optional image.
Teaches: Sections, Settings, Blocks, Locale fallback, Snippets.
Product card
One product as a tile: image, sale or sold-out badge, title and price.
Teaches: Snippets, render, Conditionals, Price display.
Product grid
A titled grid of products from a collection, with columns, card style and limit as settings.
Teaches: Collections, Loops, Snippets, Settings, Responsive columns.
Header and navigation
The store header: logo area, menu with sub-links, search, language switch and the cart button.
Teaches: Section groups, Menus, Blocks, Cart drawer, Language switch.
Product details
The product page: gallery, breadcrumb and an info column built from blocks.
Teaches: Page types, Blocks, Product gallery, Variants, Add to cart.
Cart page
The cart: line items, an empty state, a summary and a checkout button.
Teaches: Cart, Parts, Empty states, Checkout button.
Collection page
A product listing with sorting, filters and pagination.
Teaches: Page types, Sorting and filters, Loops, Pagination.
Localized section
The same hero in English and Arabic from two language files, with the layout flipping to right to left.
Teaches: Locale files, t(), Localized settings, Right to left.
