Overview
WooCommerce normally lists product attributes only in the “Additional information” tab. This plugin adds a block that shows the value of any attribute exactly where you want it in a block theme, for example Color: Walnut, Natural Oak, Black under the product title, or Width: 60, 90, 120 cm inside a product grid.
Block theme required: The plugin provides a block, so it needs a theme that supports block templates, such as Twenty Twenty-Four or Twenty Twenty-Five.
Before you start
| Requirement | Minimum | Notes |
|---|---|---|
| WordPress | 6.5 | Tested up to 7.1.4 |
| WooCommerce | 8.0 | Required |
| PHP | 7.4 | |
| Theme | Block theme | Or a theme that supports block templates |
| Multisite | Not yet verified |
Install and activate
Note: This plugin works only in the WordPress Gutenberg (block) editor. Make sure your theme supports block templates to use the attribute blocks. Classic editor and unsupported classic themes are not supported.
From your WordPress dashboard
- Make sure WooCommerce is installed and active.
- Go to Plugins → Add New Plugin and search for Product Attributes Display For WooCommerce
- Click Install Now, then Activate.
From a ZIP file
- Download the plugin ZIP.
- Go to Plugins → Add New Plugin → Upload Plugin and upload it, or extract it and upload the
product-attributes-displayfolder to/wp-content/plugins/. - Activate it under Plugins → Installed Plugins.
Show an attribute on your product pages
- Create or reuse attributes under Products → Attributes, and give your Attribute values for them (for example colors or widths).
- Go to Appearance → Editor → Templates and open the Single Product template, or a template with a Product Collection block.
- Click the block inserter (+) and search for the attribute name, for example, Color. Insert it inside the product area.
- In the block settings sidebar, set an optional Prefix (such as
Width:) and Suffix (such ascm). - Save the template and view a product.
A block appears in the inserter automatically for every global attribute (the ones under Products → Attributes).
Block settings
| Setting | What it does |
|---|---|
| Attribute slug | Which attribute to show. Blocks from the inserter fill this in for you. |
| Prefix | Text before the value, such as Color: |
| Suffix | Text after the value, such as cm |
Several values are shown as a comma-separated list. If a product has no value for the attribute, the block outputs nothing, so you never see an empty label.
Global and custom attributes
| Attribute type | Where it is created | Slug to use |
|---|---|---|
| Global | Products → Attributes | The taxonomy name with the pa_ prefix, for example pa_color or pa_width |
| Custom (product-level) | On a single product, in the Attributes tab | The attribute name in lowercase with spaces replaced by hyphens. “Fabric Type” becomes fabric-type |
To show a custom attribute, insert any attribute block and change its Attribute slug to the custom attribute’s slug.
Where the block works
Anywhere a product is available to blocks:
- The Single Product template
- Inside the Product Collection block’s in catalog template
Note: This block will not work outside WooCommerce blocks or templates.
Style the output
The block renders a paragraph with the class wp-block-pkart-shop-attributes plus the attribute slug as a class (for example pa_color). Inside it:
.wp-block-pkart-product-attributes-display__prefix
.wp-block-pkart-product-attributes-display__value
.wp-block-pkart-product-attributes-display__suffix
You can also add your own class in the block’s Advanced settings panel.
Troubleshooting
My attribute is not in the block inserter
Automatic blocks are created only for global attributes. Create the attribute under Products → Attributes, or insert any attribute block and set the custom attribute’s slug.
The block is empty on some products
That product has no value for the selected attribute, or the block is outside a product context. Add a value on the product, or move the block inside the product area of the template.
I use a classic theme
The plugin needs a theme that supports block templates. Classic themes are not supported unless they support block templates.
Frequently asked questions
Is it free?
Yes. There is no license fee.
Does it need WooCommerce?
Yes. WooCommerce 8.0 or later must be active.
Does it slow down my site?
The block is rendered on the server, loads no front-end JavaScript, and adds no database tables or options.
Is it compatible with HPOS?
Yes. It declares compatibility with High-Performance Order Storage and the Cart and Checkout blocks, and it does not read or write order data.
Is it translation-ready?
Yes. All strings use the product-attributes-display text domain.
Privacy and data
The plugin only displays product data that is already on your site. It does not collect personal data or read order data.
For developers
Use the CSS classes above for styling. Strings use the product-attributes-display text domain if you want to translate the plugin.
Get help
Still stuck? Open a support ticket or email [email protected]. Replies come from the developers who built the plugin, usually within 1–2 business days. To help us help you faster, include your platform version, the plugin version, your theme, and the steps you took.