This question already has answers here: Are custom inner theme folders in any way overridable by child themes? (2 answers) Closed 5 years ago.admin管理员组文章数量:1417034
I am trying to customize the html in theme/woocommerce/layout-products/grid.php, I have copied the file from parent theme to theme-child/woocommerce/layout-products/grid.php but without any effects. From the answers I found here I understand that sometimes copying the php file works, sometimes not? I also tried the require_once for this file but this breaks the whole WordPress. How can I customize the product grid html?
This question already has answers here: Are custom inner theme folders in any way overridable by child themes? (2 answers) Closed 5 years ago.I am trying to customize the html in theme/woocommerce/layout-products/grid.php, I have copied the file from parent theme to theme-child/woocommerce/layout-products/grid.php but without any effects. From the answers I found here I understand that sometimes copying the php file works, sometimes not? I also tried the require_once for this file but this breaks the whole WordPress. How can I customize the product grid html?
Share Improve this question asked Aug 7, 2019 at 3:56 freqncfreqnc 1 01 Answer
Reset to default -1That layout-products folder is not a folder from Woocommerce templates. This folder is a custom folder created by the theme you are using. Try checking out how that template is loaded and see if it can be overriden.
本文标签: woocommerce offtopicphp file child theme directory not overriding parent theme php file
版权声明:本文标题:woocommerce offtopic - php file child theme directory not overriding parent theme php file 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745263017a2650441.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论