PigmentDocumentation

Collection

The collection page: a head with the title and a menu of collections, then the products as tiles or as an index.

WherePart of the collection template.

The collection as tiles, on a desktop screenThe collection as tiles, on a phone
Collection: tiles in the color of each product.
The collection as an index, on a desktop screenThe collection as an index, on a phone
Collection: the Index view, rows that preview each product.
A collection closed by the All tile, on a desktop screenA collection closed by the All tile, on a phone
Collection: one product, then the All tile in the empty cells of the row.

What it is for

Every collection page. Each tile wears the color of its product, and the page takes the color of the tile in view as visitors scroll.

How it works

The Menu of Collection navigation shows a menu of collections as words beside the title, the current one underlined: the demo uses a menu named shop-filters (All, Cleanse, Treat, Hydrate, Protect). Default view on desktop and Default view on mobile choose Grid, tiles in the color of each product, or Index, rows that preview each product as you point at it; Let visitors switch between Grid and Index adds the two words to the tools. The products follow the sort order of the collection set in your admin. Filters come from Shopify's Search and Discovery app.

Show the product rating prints the rating of each product above its name, with the number of reviews (see Product ratings). Show color swatches draws the values of its color option as swatches, each a link to its variant. Both are off on the demo.

Show an All tile closes the grid with a tile on the background of the page, its first word set large like the names of the tiles, that links to all products: All tile collection (empty: /collections/all) and All tile label (All formulas on the demo). It fills the empty cells of the last row, for the column count of each device and the one a visitor picks, and hides when the row is full; it never shows on its own collection.

Content tips

  • Give each collection its two colors (custom.background_color and custom.background_color_end) to tint its head.
  • Set the order of the products in your admin (Products, Collections, Sort): the page keeps it.

Settings

Section settings (74)
SettingValuesDefaultNotes
Color schemeColor schemeScheme 1Shown when Surface is Color scheme or Surface is Image.
Section width
  • Theme default
  • Full width
  • Full width with margins
  • Page width
Theme defaultTheme default follows Theme settings, Layout. Full width with margins keeps the side margins set there, Page width stops at the page width.
Section background
Surface
  • Field
  • Deep
  • Paper
  • Color scheme
  • Image
FieldField, Deep and Paper follow the tone of the page. Color scheme and Image use the section's color scheme.
Image settings
Background imageImageEmptyTo vary this without editing the theme, create the metafield first. Go to Settings → Custom data → Shop. Name it "Background image", set namespace and key to "shop.background_image", and choose type "File". Then come back here and connect it with the dynamic source icon. It cannot be connected until it exists. Shown when Surface is Image.
Background image (mobile)ImageEmptyOptional. Used below 768px. When empty, the desktop background image is used. Shown when Surface is Image.
Banner
Show collection titleCheckboxOn
Show descriptionCheckboxOn
Show collection imageCheckboxOn
Banner imageImageEmptyShopify doesn’t keep a focal point on the collection image. To control the framing, pick the image here or in the custom.banner_image metafield: the focal point set in Files is then used. Shown when Show collection image is on.
Banner position (desktop)
  • Focal point
  • Top
  • Center
  • Bottom
  • Left
  • Right
Focal pointFocal point follows the focal point of the image. Without one, the image stays centered. Shown when Show collection image is on.
Banner position (mobile)
  • Focal point
  • Top
  • Center
  • Bottom
  • Left
  • Right
Focal pointShown when Show collection image is on.
Image banner height (desktop)160 to 560 px, step 20280 px
Image banner height (mobile)120 to 400 px, step 20180 px
Overlay opacity (image banner)0 to 90%, step 530%
Hover effect
  • None
  • Zoom
  • Darken
NoneShown when Show collection image is on.
Position on the image (desktop)
  • Top left
  • Top center
  • Top right
  • Middle left
  • Center
  • Middle right
  • Bottom left
  • Bottom center
  • Bottom right
CenterShown when Show collection image is on.
Position on the image (mobile)
  • Top left
  • Top center
  • Top right
  • Middle left
  • Center
  • Middle right
  • Bottom left
  • Bottom center
  • Bottom right
CenterShown when Show collection image is on.
Padding on the image (desktop)0 to 80 px, step 424 pxShown when Show collection image is on.
Padding on the image (mobile)0 to 48 px, step 424 pxShown when Show collection image is on.
Text backdrop
  • Paper
  • Deep
  • Field
PaperShown when Show collection image is on.
Collection navigation
MenuMenuEmptyA menu of collection links, shown as words beside the title. The link of the current collection is underlined.
Grid
Products per page4 to 48, step 412
Pagination
  • Page numbers
  • Load more button
  • Infinite scroll
Page numbersLoad more and Infinite scroll add the next page under the grid, with a Showing X of Y counter. Infinite scroll loads three pages on its own, then shows the Load more button so the footer stays reachable.
Columns (desktop)1 to 42
Columns (mobile)
  • 1
  • 2
1
Card gap (desktop)0 to 80 px, step 432 px
Card gap (mobile)0 to 48 px, step 416 px
Filters and sorting
Enable filtersCheckboxOn
Filter layout
  • Column (desktop) + drawer (mobile)
  • Drawer on all devices
  • Horizontal bar (desktop) + drawer (mobile)
Column (desktop) + drawer (mobile)
Show counts on filter valuesCheckboxOnAppends the number of matching results after each filter value, for example "Red (4)".
Show results countCheckboxOnThe total number of results shown next to the sort control on collections and under the search form, and repeated on the Apply button of the filter drawer.
Enable sortingCheckboxOn
Values before "Show more"4 to 30, step 210Longer filters are truncated to this many values.
Search box from6 to 40, step 212A search box appears inside a filter that has at least this many values.
Show color swatchesCheckboxOnApplies to filters set to the swatch presentation in the admin.
Show draggable price rangeCheckboxOn
Product cards
Image ratio
  • Square (1:1)
  • Landscape (4:3)
  • Portrait (3:4)
  • Original
Square (1:1)
Image fit
  • Contain (never crops)
  • Fill (crops)
Contain (never crops)
Second image on hoverCheckboxOff
Badges
  • All
  • Automatic only
  • Custom only
  • None
AllAutomatic: Sale, Sold out and New, set in Theme settings, Product badges. Custom: the product’s custom.badge_label metafield.
Show vendorCheckboxOff
Quick add
  • Off
  • Single-variant products
  • All products
All productsSingle-variant products get a one-click add to cart on the card. All products also opens an option picker for products with variants. The cart drawer opens either way.
Quick add labelTextTranslated textLabel of the quick add button. Products with variants say Choose options, pre-order variants use the label from Theme settings, Pre-order. Leave empty to use the translated default.
Quick view
  • Off
  • Show on hover
  • Always show
OffOpens the product in a modal. Show on hover reveals the button over the image on hover, and always shows it on touch screens. The button's look and the modal's content are in Theme settings, Quick view.
Button labelTextTranslated textLeave empty to use the translated default.
Spacing inside card (desktop)0 to 40 px, step 214 px
Spacing inside card (mobile)0 to 32 px, step 210 px
Product title to price spacing (desktop)0 to 40 px, step 28 px
Product title to price spacing (mobile)0 to 32 px, step 26 px
Card composition
Card style
  • Bare
  • Bordered
  • Filled
Bare
Card content alignment
  • Center
  • Left
  • Right
Center
Element order
  • Product title, then price
  • Price, then product title
Product title, then price
Show the product ratingCheckboxOffShows the rating of each product above its name: the reviews.rating metafield of a review app, else custom.rating. A product without either shows none.
Card swatches
Show color swatchesCheckboxOff
Swatch option nameTextColor, Colour, CouleurComma-separated. The card shows swatches for the first product option whose name matches.
Maximum swatches before "+N"2 to 104
Swatch size12 to 40 px, step 220 px
Swatch shape
  • Circle
  • Rounded
  • Square
Circle
Grid controls
Let visitors change the column count (desktop)CheckboxOffAdds 2 / 3 / 4 buttons beside the sort.
Let visitors change the column count (mobile)CheckboxOffAdds 1 / 2 buttons beside the filters on phones.
Default view on desktop
  • Grid
  • Index
Grid
Default view on mobile
  • Grid
  • Index
Grid
Let visitors switch between Grid and IndexCheckboxOnAdds Grid and Index to the tools. The choice is kept while the visitor browses.
Feature the first productCheckboxOffThe first card spans two columns on desktop.
Show an All tileCheckboxOnOn the last page, when the last row has room, a tile linking to all products fills it. Never on that collection’s own page.
All tile collectionCollectionEmptyEmpty: all products (/collections/all).
All tile labelTextAll productsShown when Show an All tile is on.
Spacing
Header over this sectionCheckboxOffFirst section of the template only, with Header behavior on Transparent at top: the announcement bar and the header sit over this section’s background and take their tone from it.
Top padding (desktop)0 to 120 px, step 440 px
Bottom padding (desktop)0 to 160 px, step 480 px
Top padding (mobile)0 to 80 px, step 424 px
Bottom padding (mobile)0 to 120 px, step 448 px
Breadcrumbs
Breadcrumbs on this page
  • Use the theme setting
  • Show
  • Hide
Use the theme settingOverrides Theme settings for this page only. Position and separator stay global.
Breadcrumbs alignment
  • Use the theme setting
  • Left
  • Center
  • Right
Use the theme setting

Block: Promo tile

Promo tile block settings (11)
SettingValuesDefaultNotes
A tile that takes the place of a product card at the position below, on the first page of the grid only. With a link, the whole tile is clickable.
ImageImageEmpty
Image (mobile)ImageEmptyOptional. Replaces the image on phones.
HeadingTextEmpty
TextMulti-line textEmpty
Button labelTextShop now
LinkLinkEmptyMakes the whole tile clickable. Screen readers hear the heading as the link name.
Color schemeColor schemeScheme 2
Position in the grid1 to 483Rank of the tile among the cards. Beyond the last card, the tile closes the grid.
Width (desktop)
  • 1 column
  • 2 columns
1 column
Width (mobile)
  • 1 column
  • 2 columns
1 column
Text alignment
  • Left
  • Center
  • Right
Center

This section accepts app blocks.