How-to
How to Add a Size Chart in WooCommerce
WooCommerce has no built-in size chart. You can add one three ways without a plugin: a table in the product description, a size guide page linked from products, or a custom product tab filled from a custom field. A plugin is the fourth option when you have many products.
These steps use standard WordPress and WooCommerce features. Themes and versions differ, so test on a staging copy before you change a live shop. We have not run the code below on every theme.
No store yet? WooCommerce is open-source software for WordPress stores.
Option 1: a table in the product description
- In the WordPress admin go to Products and edit a product.
- In the description, add a Table block (block editor) or paste HTML in the Code/Text view of the Classic editor.
- Fill in the sizes and measurements. Start from a template.
- Update the product.
Good for: a few products. Limit: repeats per product.
Option 2: a size guide page, linked from products
- Pages > Add New: title “Size guide”, add tables and measuring instructions, publish.
- In each product’s short description, add a link:
<a href="/size-guide/">Size guide</a>. - Optional: add the link once, near the size selector, with a hook or a widget, depending on your theme.
Good for: one chart for every product. Limit: all garment types share one page.
Option 3: a “Size chart” product tab from a custom field
This adds a tab next to Description and Reviews, filled from a field on each product.
- On a product edit screen, open Screen Options (top right) and tick Custom Fields.
- Add a custom field named
size_chart_htmland paste your chart HTML as its value. Save. - Add this to a child theme’s
functions.phpor a snippets plugin (never edit a parent theme directly):
add_filter( 'woocommerce_product_tabs', function ( $tabs ) {
$html = get_post_meta( get_the_ID(), 'size_chart_html', true );
if ( $html ) {
$tabs['size_chart'] = array(
'title' => __( 'Size chart', 'woocommerce' ),
'priority' => 25,
'callback' => function () use ( $html ) {
echo wp_kses_post( $html );
},
);
}
return $tabs;
} );
- Open a product with the field set: the tab appears. Products without it show no tab.
wp_kses_post keeps standard formatting tags, including tables, and removes scripts, so paste plain HTML tables only. A broken snippet can take a site down: use staging and keep a backup.
Option 4: a plugin
Plugins add chart builders and assign charts by category. Look for ones that: store charts once, assign by category or tag, show on mobile, are updated for your WooCommerce version, and are not abandoned (check the last update date on WordPress.org). We do not publish a ranked plugin list: we have not tested enough of them to rank them fairly.
Decide
| You have | Use |
|---|---|
| A few products | Option 1 |
| One chart for everything | Option 2 |
| Different charts per product, some code comfort | Option 3 |
| Many products and no code | Option 4 |
Related
If your shop is on Shopify instead: how to add a size chart in Shopify. Choosing a platform: Shopify vs WooCommerce for clothing stores. Store locator on WooCommerce: woocommerce store locator.
How to Choose a WooCommerce Size Chart Plugin
Searching for a size chart plugin returns many options, free and paid. We do not review specific plugins here: we have not tested them, and plugin versions and pricing change often. This page gives you the questions to ask so you can judge any of them in ten minutes. If you want to avoid a plugin altogether, see how to add a size chart in WooCommerce.
Ten questions
- Where can a chart show? A tab, a popup, a link under the size selector, or inside the description. Pick one that matches your theme and your shoppers.
- How are charts assigned? By product, by category, by tag or by attribute. A rule by category saves hours when you have hundreds of products.
- Can one chart serve many products, edited once? If you must copy a chart into each product, you have bought a hard-to-maintain table.
- Can you enter more than one unit, cm and inches, with a toggle or two columns?
- Does the table work on a phone? Open the demo on your phone. Wide tables must scroll or stack.
- What does it do to page speed? Does it load scripts on every page or only on products? Test one product page before and after with a speed test.
- Who owns the data? If you stop using the plugin, are the charts still on your site, or do they vanish? Can you export?
- Is it maintained? Look at the date of the last update, the “tested up to” version of WordPress, and how the author answers support questions.
- What does the free version leave out? Check that what you need is in the plan you will pay for. Read the licence terms, including the renewal price.
- Is it accessible? A real table with headers, keyboard-operable popups and readable contrast, not an image of a table.
A short test
- Install on a staging copy, not your live shop.
- Create one chart and assign it to a category.
- View it on a phone and with a screen reader or keyboard only.
- Deactivate the plugin and see what is left behind.
No plugin at all
For a few products, a table in a product tab or in the description is enough and costs nothing: see the no-plugin route. Starting data: free size chart templates. For how the Shopify equivalent is judged, see best size chart apps for Shopify and, for how plan prices stack up over a year, Shopify size chart app pricing compared. If you are still deciding between platforms, Shopify vs WooCommerce for clothing stores lays out the trade-offs.