Davoud
Davoud

Reputation: 2933

Overriding Woocommerce child theme not working

Overriding Woocommerce files from my child theme is not working at all. I am sure everything is 100% right, really frustrating. I am following every step in a video at this page:

https://docs.woocommerce.com/document/template-structure/

Upvotes: 2

Views: 7700

Answers (3)

Mikers
Mikers

Reputation: 11

If someone is still interested in this topic I have found what was causing this issue on my theme. Just add the theme support for Woocommerce in functions.php as described on Github.

https://github.com/woocommerce/woocommerce/wiki/Declaring-WooCommerce-support-in-themes

Upvotes: 1

katia perez
katia perez

Reputation: 1

Since the Template Debug Mode is no longer an option in Woocommerce system tools, this is what worked for me.

Just add this line to your wp_config.php file:

define('WC_TEMPLATE_DEBUG_MODE', false);

Upvotes: 0

Davoud
Davoud

Reputation: 2933

Ah, it was so simple. Go to this path:

WP Dashboard -> WooCommerce -> System Status -> Tools

and then uncheck the "Template debug mode":

Woocommerce\system Status\tools

Upvotes: 2

Related Questions