Fluorescent
Stiletto
Stiletto
  • Stiletto Help Center
    • Start using Stiletto
      • Theme licenses
      • Migrate your theme
    • FAQs
    • Video tutorials
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • SEO for Shopify themes
      • H1 heading tags
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
    • Update your theme
  • Theme styles
    • Theme settings
    • Style presets
      • Demo layouts
    • Fonts
    • Colors
    • Animation
  • Pages
    • Templates
      • About page
      • Blog page
      • Blog posts
      • Collections list
      • Contact page
      • Customer accounts
      • FAQ page
      • Lookbook
      • Password page
      • Search page
      • Store locations
      • 404 page
      • Home page
    • Announcement bar
    • Header
      • Layout and style
      • Logo
      • Transparent header
      • Mega menus
      • Mobile menu
      • Quick search
      • Language and currency
      • Social media icons
      • Customer account icon
    • Footer
      • Links block
      • Newsletter block
      • Text and image block
      • Language and currency
      • Payment icons
      • Custom Liquid
  • Sections
    • Theme sections
      • Using sections
      • Content blocks
      • Blog posts
      • Collapsible row list
      • Collection list grid
      • Collection list slider
      • Complete the look
      • Contact form
      • Countdown banner
      • Countdown bar
      • Events
      • Featured collection grid
      • Featured collection slider
      • Featured product
      • Gallery carousel
      • Grid
      • Image compare
      • Image hero
      • Image hero split
      • Image with text
      • Image with text split
      • Multi column
      • Newsletter
      • Newsletter compact
      • Promotion banner
      • Promotion bar
      • Quotes
      • Recently viewed products
      • Rich text
      • Sales banner
      • Scrolling content
      • Shoppable image
      • Shoppable image editorial
      • Slideshow
      • Testimonials
      • Video
      • Video hero
      • Video with text
    • Popups
      • Sign up popup
      • Age verification
      • Countdown popup
      • Promotional popup
  • Products
    • Product listings
      • Product card style
    • Prices and discounts
    • Product badges
    • Quick shop
  • Product pages
    • Product template
      • Alternate templates
      • Pre-order template
      • Gift card
    • Layout and style
      • Product tabs
      • Media gallery
      • Sticky product details
      • Breadcrumbs
      • Navigation buttons
    • Overview blocks
      • Default blocks
        • Description
        • Product header
        • Variant selector
        • Quantity selector
        • Buy buttons
        • Local pickup banner
        • Share icons
        • Sticky add-to-cart bar
      • Collapsible rows block
      • Complementary products
      • Custom options
      • Image block
      • Information popup
      • Product labels
      • Secure payment
      • Stock level indicator
      • Text block
      • Text list with icons
      • App blocks
    • Variant options
      • Variant chips
      • Variant swatches
        • Enable swatches
        • Use default colors
        • Use custom colors
        • Use variant images
        • Use custom images
        • Change swatch styles
        • Show on product cards
        • Dynamic option availability
      • Media grouping
      • Sibling product swatches
    • Product page sections
      • Product reviews
      • Product recommendations
  • Collection pages
    • Collection template
      • Collection landing
      • Sale collection
      • Subcollections
      • Flash sale
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Quick cart
      • Added to cart popup
      • Empty cart promotion
    • Free shipping bar
    • Low inventory warning
    • Cross sells
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page
  • Set up sibling products
  • 1. Add individual products to siblings collection
  • 2. Set up metafields for sibling products
  • 2a. Define metafield for siblings collection
  • 2b. Define metafield for sibling option name
  • 3. Update metafields for each sibling product
  • Change option label
  • Use product image or color for swatches
  • Use custom colors
  • Use product images
  • Show sibling swatches on product listings
  • Hide sibling collections
  • Hide from collections list page
  • Hide from search results

Was this helpful?

  1. Product pages
  2. Variant options

Sibling product swatches

Last updated 4 months ago

Was this helpful?

In Stiletto v3.0.0 (released Feb 2024), sibling product swatches can appear in the quick view popup and featured products section, as well as in product listings when hovered over. See our and to learn more.

Sibling products allow you to set up variants as individual products with their own images and product details.

On product pages, variant swatches link to other sibling product pages. In collections and product listings, sibling products are displayed as individual products.

After setting up sibling products, you can choose display either product images or custom colors for the swatches.

See our for an example of sibling product swatches.

Set up sibling products


To set up sibling products you will need to add individual products to a new collection, then add and update two metafields for each sibling product.

  • Create products with unique images and details

  • Add products to a collection to group together as 'siblings'

  • Create two metafields to show siblings as swatches and add option names to products

1. Add individual products to siblings collection


To create a group of sibling products, you need to add individual products and add them to a new collection. The collection is used to group your sibling products together as variant options.

STEPS

In your Shopify admin:

  1. Click Products in the side panel. Click Add product to create the individual products for your siblings collection.

    We recommend using the same product title that includes the different option names (eg. color). For example: "Shoes - Green", "Shoes - Blue", etc.

    Tip: Create the first product then duplicate it to keep them consistent and save time from having to re-write and set up the details for each product.

  2. Go to Products > Collections to Create collection. Add your products to the collection to group them together as "siblings".

    You can name your collection anything you like.

    Note: By default, your sibling collection will appear on the Collections List page. To hide the sibling collection from the collection list page, you can choose selected collections to display in the theme editor.

  3. Click Save.

2. Set up metafields for sibling products


Once your sibling products are added to a collection, you need to add two metafields to your products.

Sibling products use metafields to (a) display sibling products as swatches and (b) give each product a variant option name.

2a. Define metafield for siblings collection


Go to Settings > Custom data to create the first metafield for your Products. This metafield will be used to display sibling products as swatches.

The metafield requires the following fields:

Name

Siblings collection

Namespace and key

stiletto.siblings_collection Must be exact to work. Note that 'siblings' is plural with an 's'. Do not add or modify words.

Type

Collection (Reference)

If you are creating multiple sibling collections, you only need to create one metafield.

STEPS

In your Shopify admin:

  1. Go to Settings > Custom data. Click Products.

  2. Click Add definition button in the top-right.

  3. Enter "Siblings collection" in the Name field. Note that "Siblings" is plural.

    The Namespace and key field will automatically update to custom.siblings_collection

  4. In the Namespace and key field, replace the word "custom" with "stiletto".

    The Namespace should now be stiletto.siblings_collection. This namespace must match exactly or the siblings swatches will not work.

    Do not add additional words or multiple metafields for different sibling collections.

  1. Click + Select content type and select Collection under Reference.

  2. Click Save.

2b. Define metafield for sibling option name


Go to Settings > Custom data to create the second metafield for your Products. This metafield will be used to give individual products a variant option name (e.g. "Red" or "Wood").

The metafield requires the following fields:

Name

Sibling option name

Namespace and key

stiletto.sibling_option_name Must be exact to work. Note that 'sibling' is singular with no 's'. Do not add or modify words.

Type

Single line text

STEPS

In your Shopify admin:

  1. Go to Settings > Custom data. Click Products.

  2. Click Add definition button in the top-right.

  3. Enter "Sibling option name" in the Name field. Note that "Sibling" in the name is singular and not plural.

    The Namespace and key field will automatically update to custom.sibling_option_name

  4. In the Namespace and key field, replace the word "custom" with "stiletto".

    The Namespace should now read as stiletto.sibling_option_name. Note that "sibling" is singular, not plural. This namespace must match exactly or the siblings swatches will not work.

  1. Click + Select content type and select Single line text.

    This field will be used to label each sibling product with an option name (e.g. "Red" or "Wood").

  1. Click Save.

3. Update metafields for each sibling product


After creating the 2 metafields, go to Products in your Shopify admin to add content to the metafields.

  • Select the related sibling collection

  • Enter an option name for the sibling product

That's it! the sibling product swatches will now automatically display on the product pages.

STEPS

In your Shopify admin:

  1. Click Products in the side panel and open the products in your sibling collection.

  2. Click the Siblings collection metafield and select the collection with your sibling products.

  3. Click the Sibling option name metafield and enter text for the swatch label.

    The option name will appear as a label above the swatch. It is also used to display custom swatch colors when product images are not enabled

  4. Update these metafields for each product. Click Save.

Change option label


By default, the label above the sibling swatches is "Color". Go to Theme settings > Products to change the Siblings label.

Use product image or color for swatches


Sibling products swatches can display product images or custom colors.

Use custom colors


By default, sibling swatches display as colors. To use custom swatch colors, you can assign a hex code to your product option in Theme settings > Product.

STEPS

In your theme editor (Customize):

  1. Go to Theme settings > Products.

  2. Under Swatches, find the Custom swatch colors field.

  3. Add the exact Option name used for your sibling product ("Green") followed by a colon and your hex code color (#00b300). For example: Green: #00b300

    To add custom colors for multiple options, press return to enter them on separate lines.

  1. Click Save.

Use product images


Siblings can use product images as swatches. Go to Theme settings > Products. Under Sibling swatches, change the Swatch source to Product image.

To show images as swatches on Product listings, go to Theme settings > Product listings.

In your Shopify admin, go to Products to upload and select images for your individual sibling products. Click and drag the product image you want to the first position in the product media gallery.

Show sibling swatches on product listings


By default, sibling swatches appear on product listings found in collection pages and theme sections. When hovered over, sibling products will display the image or color swatch.

To disable sibling swatches on product listings, go to Theme settings > Product listing and toggle off Show sibling swatches.

Hide sibling collections


By default, all published collections appear on the Collections list page and in Search results. Follow the steps below to hide sibling collections on your store.

Hide from collections list page


To hide a sibling collection from the Collections list page, you can choose to show only selected collections, instead of all collections.

STEPS

In your theme editor (Customize):

  1. Use the template selector to open the Collections list template.

  2. Click to open the Collections list section in the side panel.

  3. Under Select collections to show, choose Custom list.

  4. Click Select collections and choose only those collections that you want to show.

  5. Click Save.

Hide from search results


While Shopify doesn't provide an option to hide collections, you can use metafields as a workaround to remove specific collections from search results.

STEPS

From your Shopify admin:

  1. Go to Settings > Custom Data > Collections > Add definition.

  2. Enter Hide collection in the Name field.

  3. Enter seo.hidden in the Namespace and key field.

  4. Click (+) Select type and select Integer.

  5. Make sure that One value is selected.

  6. Click Save.

Return to your Shopify admin:

  1. Go to Products > Collections and select the collection you want to hide.

  2. Scroll down to the Metafields area.

  3. Enter the number 1 in the Hide collection metafield.

  4. Click Save.


Related links

Metafields are custom fields added to your products in the Shopify admin. The steps below will cover all you need to know, but if you'd like to learn more, see .

Custom styles are also available for the , which apply to all swatches in the theme.

You can use a to find the hexcode for your color. Select and copy the six-character hex code, including the hashtag symbol.

When enabled, sibling swatches will also appear in the and . Selecting a sibling swatch in the Featured product section will update the product media and details. Selecting a sibling swatch in the Quick view will redirect to the sibling product page.

Shopify's guide to metafields ↗
size and shape of swatches
HTML color picker like this one
Quick view popup
Featured product section
Product pages
Variant swatches
Changelog
theme update guide
Stiletto demo
Add a collection metafield with a seo.hidden key.
Enter 1 in the hide collection metafield.