How to add a size guide tab to WooCommerce products
A size guide right on the product page answers the most common clothing and shoe question before it turns into a return. WooCommerce has no size guide tab by default, but there are two easy ways to add one.
- With the free Tablift plugin: write the chart once, reuse it on many products, no code.
- With a code snippet: no plugin, good if you are comfortable editing PHP.
Option 1: A reusable size guide tab with Tablift
Step 1: Install Tablift
Go to Plugins > Add New, search for Tablift, then click Install Now and Activate (or get it from WordPress.org).
Step 2: Create the size guide as a saved tab
Go to Products > Saved Tabs and click Add saved tab.
- In the title field (Internal name (only you see this)), enter something like
Size guide – women's tops. Shoppers never see this name, so you can keep several size guides apart. - In the Tab title shown to shoppers box, enter
Size Guide. - In the editor, add your chart. A simple table works well, and you can add an image or a "how to measure" note below it.
Click Publish.
Step 3: Insert it into your products
Edit a product and scroll to the Product Tabs box. Pick your size guide in Choose a saved tab…, click Insert saved tab, then Update the product. Drag tabs to change their order.
The tab shows Linked to saved tab. Saved tabs are inserted per product; they aren't assigned automatically by category.
Step 4: Update every product at once
When your sizing changes, edit the saved tab under Products > Saved Tabs and save. Every linked product updates. If one product needs a slightly different chart, click Unlink and edit here in that product's Product Tabs box to turn it into a per-product copy.
Step 5: Choose where the tab appears
Under Products > Tab Settings, the Tab order list sets where Custom tabs (per product and saved tabs) sit relative to Description, Additional information and Reviews. You can also rename or hide the default tabs there.
Example chart content for the saved tab:
| Size | Chest (cm) | Waist (cm) |
|---|---|---|
| S | 86–91 | 71–76 |
| M | 94–99 | 79–84 |
| L | 102–107 | 86–91 |
Tip: if your theme or page builder replaces the WooCommerce tabs area, you can place the same saved tab anywhere with [tablift_tab id="123"], where 123 is the saved tab's ID (shown in the edit screen URL).
Option 2: Add a size guide tab with code
WooCommerce builds the product tabs from the woocommerce_product_tabs filter. Add this to your child theme's functions.php or a code snippets plugin:
add_filter( 'woocommerce_product_tabs', function ( $tabs ) {
global $product;
// Only show on products in the "clothing" category (change or remove this check).
if ( ! $product || ! has_term( 'clothing', 'product_cat', $product->get_id() ) ) {
return $tabs;
}
$tabs['size_guide'] = array(
'title' => __( 'Size Guide', 'your-textdomain' ),
'priority' => 25, // Description is 10, Additional information 20, Reviews 30.
'callback' => function () {
?>
<h2>Size Guide</h2>
<table>
<tr><th>Size</th><th>Chest (cm)</th><th>Waist (cm)</th></tr>
<tr><td>S</td><td>86–91</td><td>71–76</td></tr>
<tr><td>M</td><td>94–99</td><td>79–84</td></tr>
<tr><td>L</td><td>102–107</td><td>86–91</td></tr>
</table>
<?php
},
);
return $tabs;
} );
- priority sets the position: lower numbers appear first.
- Remove the
has_term()check to show the tab on every product, or changeclothingto your category slug. - The chart lives in code, so changing it means editing PHP. For different charts per category, add a check per category or store the chart in a product field.
Which should you use?
Use the code snippet if you have one chart and are comfortable with PHP. Use Tablift if you want to edit charts in the normal WordPress editor, keep several size guides for different product types, or let shop managers update them without touching code.