Reputation: 11
I am developing my WooCommerce theme (hereinafter referred to as WC). WC does not see the single-product.php template, and load index.php instead. At the same time, on the catalog page, the custom archive-products.php is loaded.
Guys, neither custom nor original single-product.php is loaded. Tell me, please, what to do?
I did:
Upvotes: 0
Views: 1758
Reputation: 1196
Check the directory again and make sure the file name is correct. it must be archive-product.php
Not archive-products.php
.
It's better if you copy the plugin template file in your theme directory then modify it.
Example: To override the archive-product.php, copy: wp-content/plugins/woocommerce/templates/archive-product.php
to wp-content/themes/yourtheme/woocommerce/archive-product.php
Reference: https://woocommerce.com/document/template-structure/#how-to-edit-files
Upvotes: 0