How to override WooCommerce template files?
The WordPress WooCommerce template files are different from the WordPress theme template files. The template file for shop pages is archive-product.php. In some WordPress premium theme the override functionality are inbuilt. You can also override the Woocommerce templates in your WordPress child theme by same way.
All WordPress themes provide a sidebar area for the shop page, For this you have to check if your theme is compatible with WooCommerce or not? If your theme compatible then you should have a sidebar available under Appearance->Widgets with name similar to ‘Shop Sidebar’.
How to override a template?
You need to create a folder named woocommerce in your theme directory. After creating folder copy the template file folder to woocommerce folder in which you are created in your theme folder.for example, if you want to override all checkout template files you need to do following steps:-
wp-content/plugins/woocommerce/templates/checkout to wp-content/themes/your-theme-name/woocommerce/checkout
To override the shop page
wp-content/plugins/woocommerce/templates/archive-product.php to wp-content/themes/your-theme-name/woocommerce/archive-product.php
If you find this article helpful please share it with your friends. You can also check our post on How to get custom post type by custom category in wordpress
Error: TypeError: Cannot read property map of undefined at resolveDependencies (C:\xampp\htdocs\reactnative\reactnativerealm\drug\node_modules\metro\src\DeltaBundler\traverseDependencies.js
How to get data in DESC order Realm React Native
How to integrate Binect APIs in php
How to delete table in Laravel?