Website Building » WooCommerce » How do I override WooCommerce templates?

How do I override WooCommerce templates?

Last updated on September 24, 2022 @ 9:49 pm

There are many ways to override WooCommerce templates, but the most popular method is to use the WordPress Customizer. To use the Customizer, go to My Site -> Customize -> WooCommerce. Then, under the Templates tab, click the Edit button next to the template you want to override. You’ll need to provide the full path to the template file, as well as the name of the template you want to use.

For example, if you want to use the default WooCommerce template, you would enter wc-template.php into the Edit Template field and click the Update button.

PRO TIP: If you are overriding WooCommerce templates, it is important to note that you should not do this without first creating a child theme. Overriding templates in your WooCommerce theme can cause serious problems if not done correctly, and could result in your site breaking.

Once you’ve made your changes, click the Save button to save your changes and return to the WooCommerce Customizer. You’ll now see your new template in the Templates tab.

To use it, simply click the Use This Template button and then fill in the appropriate fields. If you want to disable the default template, simply click the Disable This Template button and then fill in the appropriate fields.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.