How to add Custom Attributes to your products
The WooCommerce SEO plugin can add Product Brand and Product Manufacturer Schema data to your product pages. To do so, you need to add the attributes to WooCommerce, then configure them on the product page.
NOTE: If you assign anything but an attribute (such as Product Tag or Product Category) into the Brand and Manufacture fields, the itemprop schema will not get outputted.
Create the attributes in WooCommerce
Before the attributes can be used by WooCommerce SEO, they need to be created in WooCommerce first:
- Go to Products -> Attributes, then add the name of the attribute (in this case, Brand) and the slug.
- Add the Terms to the attribute. In this example, the terms would be the brands on your site.
- After you’ve added the Brand and Manufacturer attributes, you can select them in the WooCommerce SEO plugin settings by going to SEO -> WooCommerce SEO :
- In the Product edit page, scroll down to the WooCommerce product data box, select “Attributes” and click “Add” to add a Custom Product attribute and select the values of the attribute:
The Yoast WooCommerce SEO plugin will add the “Brand” attribute as an OpenGraph “product:brand” tag in the source code of the product page. It will add the “Manufacturer” and “Brand” attribute as an “itemprop” global attribute to the product page.