I am building a theme with WordPress and WooCommerce. I created a woocommerce.php file in my theme folder, but all the page of WooCommerce use this template. How do I use different template for Archive page and Single page?

For example, Archive page has left sidebar with product categories; and Single page has right other sidebar with related products.

Thank you very much! Sorry for my bad English. WooCommerce version 4.2.0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.