woocommerce offtopic - php file child theme directory not overriding parent theme php file

This question already has answers here:Are custom inner theme folders in any way overridable by child themes?(2 answers)

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?

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 0
Add a comment  | 

1 Answer 1

Reset to default -1

That 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745263018a4619296.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信