coffee4devContact us

Docs C4D Variation Swatches & Gallery for WooCommerce

Swatches on the shop page

Updated 13 November 2026

Showing colours on the shop page tells customers a product comes in their colour before they click into it. The settings are at C4D › Swatches › Shop page.

Turning it on

Set Show swatches on shop pages to Yes and save. It’s on by default. Products with a Color or Image attribute show a row of swatches below their name in the shop, category pages and related products.

Only Color and Image attributes appear on the shop page. Sizes and other text attributes are left for the product page, where there’s room for them.

When a customer hovers over or taps a swatch, the product’s thumbnail changes to the first photo you added for that option in the Swatch Images box.

Shop page settings

Setting What it does
Flip thumbnail When a customer hovers over a product, show its second gallery photo. A quick way to show the back of a garment or the product in use. On by default.
Swatch alignment Align the swatches left, centre or right under the product, to match your theme’s product titles. Left by default.
Show image instead of colour For colour attributes, show the option’s first photo instead of a colour dot. On by default.
Show “View more” link When a product has many colours, show only the first few and a link to the product page. Off by default.
Swatches before “View more” How many swatches to show before the link. 5 by default.
“View more” text The link text. “View More” by default. You can add a small icon tag.
Tooltip on mobile Show the option name tooltip on screens narrower than 1024 px too. Off by default.

Swatch size, spacing and tooltips

Swatch size, spacing and tooltip colours are no longer settings. You change them with CSS on the Custom CSS tab. Style swatches with CSS has copy-and-paste rules for the swatch size and margin on the shop page, and for the tooltip.

The tooltip is the label that shows the option name when a customer hovers over a swatch. On phones there’s no hover, so with Tooltip on mobile on, it appears on tap. Leave it off if a tap should go straight to the product.

Themes that load products with Ajax

Some themes and filter plugins load more products without reloading the page, with “load more” buttons, infinite scroll or Ajax filters. The plugin needs to add swatches to those new products too. It does this by default when a request goes to admin-ajax.php. The settings are at C4D › Swatches › Compatibility: Run after Ajax requests and Ajax URL pattern.

If swatches are missing on products that appear after filtering or scrolling, see Troubleshooting.

Keeping the shop page tidy

  • Five or six swatches is plenty. Beyond that, turn on Show “View more” link so product cards stay the same height.
  • Match swatch size to your product images. On a grid of four products per row, 18 to 22 px swatches usually look right.
  • Check on a phone. Swatches that are too small are hard to tap. 24 px is a good minimum on mobile.