T
T
twentytvvo2021-01-23 19:24:14
WordPress
twentytvvo, 2021-01-23 19:24:14

How to connect your Woocommerce template correctly?

I created a "woocommerce" directory in the theme folder, placed the single-product.php template and content-single-product.php template there, as well as the "woocommerce/single-product/" directory with all nested modules.
But for some reason editing only content-single-product.php works, I can't change the header in single-product.php, remove the sidebar, and so on.

How is this supposed to happen, what did I do wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twentytvvo, 2021-01-23
@twentytvvo

forgot about
add_theme_support( 'woocommerce' );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question