How to Override Woocommerce Template With Child-Theme

Wordpress programmer child-theme

WooCommerce template files themselves allow editing the markup and page structure of your online store frontend. In this guide, we will show you how to override WooCommerce template files

Override WooCommerce Template Files Easily

First you need to download / clone wp-content/plugins/WooCommerce/templates/ folder. All Woocommerce templates are located /templates/ folder.

Go to your wp-content/themes/your_theme-child/ directory and create woccommerce folder. You need to upload the files from woocommerce templates folder in here.

When you’ve placed the file or files into your WooCommerce folder, the new template will override the original one. Example if you want to override the shop page, you need to edit archive-product.php file.

Copy wp-content/plugins/woocommerce/templates/archive-product.php to your woocommerce folder wp-content/themes/your_theme-child/woocommerce/archive-product.php. Now you can edit any file after you copied that file in your child-theme's woocommerce folder.


If you like this blog post and it was useful to you, please follow us on Twitter and Facebook.



Related articles

Post a Comment

0 Comments