WooCommerce | woocommerce_content() Function

The woocommerce_content() is a builtin WooCommerce function which allows you to create a new template page within your theme that is used for all WooCommerce taxonomy and post type displays.

While an easy catch-all solution, it does have a drawback in that this template is used for all WC taxonomies (product categories, etc.) and post types (product archives, single product pages). Developers are encouraged to use the hooks instead.

Adding WooCommerce to a Custom Theme

You’ll need to declare support for WooCommerce in your themes functions.php file:

Hope this helps!

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers.