Chapter 2 — Creating Attributes & Swatches

This is where the magic happens. In this chapter you will learn how to create product attributes (like "Color" or "Size") and assign a color or image to each option so it appears as a visual swatch on your store.


Understanding Attributes and Terms

Before we start, here are two words that WooCommerce uses that you need to know:

When you configure a swatch, you are assigning a color or image to a term (for example, making "Red" display as a red circle).


Step 1 — Go to the Attributes Screen

  1. In your WordPress admin, go to Products → Attributes in the left-hand menu.

You will see a screen split into two sections:

The Products → Attributes screen, with the create form on the left and the list of existing attributes on the right


Step 2 — Create a New Attribute

If you already have a "Color" attribute, skip ahead to Step 3.

  1. On the left side of the Products → Attributes screen, fill in:
  2. Click Add attribute.

Your new attribute appears in the list on the right.

Tip: Create one attribute per feature. For example, create a "Color" attribute AND a separate "Size" attribute. Do not try to combine them.


Step 3 — Open the Terms for Your Attribute

  1. In the attribute list on the right, find your attribute (e.g., "Color").
  2. Click Configure terms under its name.

The attribute list with the Configure terms link highlighted under the Color attribute

You are now on the Terms screen for that attribute. This works exactly like WordPress tags or categories. You will see existing terms on the right and a form to add new ones on the left.


Step 4 — Add a New Term with a Swatch

Let's add a color called "Midnight Black" with a black color swatch.

  1. In the Add new Color form on the left, fill in:
  2. You will now see new swatch fields added by the plugin:

The Add new Color form with the Name field (1), Swatch Type set to Color (2), the Swatch Color picker (3), and the Add new Color button (4)


The Swatch Fields

Swatch Type

This is a dropdown with five choices:

Option What it Does
— Select type — No swatch — the term will appear as a plain text pill
Color Shows a filled circle (or square) in the color you pick
Image Shows a small photo or texture you upload
Text Label Shows the term name as a styled label button
Radio Button Shows a classic radio control next to the term name

Select Color for this example.

A color picker will appear beneath it.


Swatch Color (shown when "Color" is selected)

Click anywhere inside the color picker swatch box. A color palette will pop up. You can:

For "Midnight Black", type #1a1a1a or drag to a very dark shade.

The WordPress color picker open beneath the Swatch Color field, with a palette and a hex code box


Swatch Image (shown when "Image" is selected)

If you chose Image as the swatch type, you will see a Choose Image button instead of the color picker.

With Swatch Type set to Image, a Choose Image button appears that opens the Media Library

  1. Click Choose Image.
  2. The WordPress Media Library will open — the same place you upload photos for blog posts.
  3. Select an existing image, or click Upload Files to upload a new one.
  4. Click Use Image.

A small preview thumbnail will appear confirming your selection. You can click Remove at any time to change it.

Tip for image swatches: Keep swatch images square and small (around 100×100 pixels). Textures, fabric swatches, and pattern thumbnails work great here.


  1. After filling in the swatch fields, click Add new Color at the bottom of the form.

Your new term "Midnight Black" will appear in the terms list on the right side, with a small preview of its swatch in the Swatch column.


Step 5 — Edit an Existing Term

To update a term you have already created:

  1. Hover over the term name in the list on the right.
  2. Click Edit below it.
  3. You will see the same Swatch Type, Swatch Color, and Swatch Image fields.
  4. Make your changes and click Update.

Step 6 — Add All Your Terms

Repeat Steps 4–5 for every color (or size, or scent, etc.) you offer. For example, a "Color" attribute for a skincare range might look like:

Term Swatch Type Color / Image
Rose Blush Color #e8b4b8
Ivory Cream Color #f5f0e8
Midnight Black Color #1a1a1a
Lavender Mist Color #c9b8d8
Natural (texture) Image [fabric photo]

What Happens if I Don't Set a Swatch Type?

That is perfectly fine! If you leave Swatch Type set to "— Select type —", the term will still appear as a button on your product pages — it just shows the term's name as a text label (called a text pill). This is useful for "Size" attributes where colors don't make sense.


The Swatch Preview Column

On the Terms list screen, notice the Swatch column. It shows:

The terms list showing the Swatch column with a colored preview for each color term

This lets you quickly confirm all your terms are configured before going to your products.


Repeat for Other Attributes

If you also have a "Size" attribute, go back to Products → Attributes, click Configure terms on "Size", and add your sizes (XS, S, M, L, XL, etc.). You don't need to assign colors to size terms — they will appear as text pills, which is completely normal.


Want to Add Gradients, Shapes, or Tooltips?

Once you have set up your attribute terms here, two Pro modules let you go further:

These are configured per-term on the same edit screens you just used. See Chapter 9 — Advanced Styling for step-by-step instructions.