In this post, i’ll show you how easy it is to add some text or any other type of content to one or more WooCommerce product category archive pages.
WooCommerce includes a huge range of hooks which enable you to add extra content anywhere.
On top of this, you can also use the WooCommerce conditional tags in a custom function with any Woo hook to add content.
The 1st method uses a basic custom function which you can add to the end of your child themes functions.php file.
The 2nd method enables you to add different text for each product category and default text for any category not included in the code:
Both solutions enable you to easily change both the:
- WooCommerce Action Hook – woocommerce_archive_description
- WooCommerce Conditional Tag – is_product_category()