Overriding Woocommerce child theme not working

吃可爱长大的小学妹 提交于 2020-06-17 06:17:27

问题


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/


回答1:


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

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

and then uncheck the "Template debug mode":




回答2:


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




回答3:


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);



来源:https://stackoverflow.com/questions/38902568/overriding-woocommerce-child-theme-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!