admin管理员组文章数量:1130349
A theme that I am using is overwriting the woocommerce templates with files in theme/core/libraries/vendor/woocommerce/templates folder.
I tried to overwrite some minor stuff by following the best practices - I placed the updated file in the same folder structure as the parent theme, and I also tried by placing it in theme_child/woocommerce/ folder as it's expected for plugin overwrites.
None of these gave me the desired outcome. The only way is to change the parent theme, which I want to prevent if possible.
My end goal is to change the HTML output which as far as I can see is in the template and not in any specific function that I can easily replace. I am not experienced in WP development so I might be missing some obscure detail.
A theme that I am using is overwriting the woocommerce templates with files in theme/core/libraries/vendor/woocommerce/templates folder.
I tried to overwrite some minor stuff by following the best practices - I placed the updated file in the same folder structure as the parent theme, and I also tried by placing it in theme_child/woocommerce/ folder as it's expected for plugin overwrites.
None of these gave me the desired outcome. The only way is to change the parent theme, which I want to prevent if possible.
My end goal is to change the HTML output which as far as I can see is in the template and not in any specific function that I can easily replace. I am not experienced in WP development so I might be missing some obscure detail.
Share Improve this question edited Jan 4, 2019 at 19:29 Stoinov asked Jan 3, 2019 at 18:40 StoinovStoinov 1115 bronze badges1 Answer
Reset to default 0Try creating the same structure in your child theme.
child_theme/core/libraries/vendor/woocommerce/templates
A theme that I am using is overwriting the woocommerce templates with files in theme/core/libraries/vendor/woocommerce/templates folder.
I tried to overwrite some minor stuff by following the best practices - I placed the updated file in the same folder structure as the parent theme, and I also tried by placing it in theme_child/woocommerce/ folder as it's expected for plugin overwrites.
None of these gave me the desired outcome. The only way is to change the parent theme, which I want to prevent if possible.
My end goal is to change the HTML output which as far as I can see is in the template and not in any specific function that I can easily replace. I am not experienced in WP development so I might be missing some obscure detail.
A theme that I am using is overwriting the woocommerce templates with files in theme/core/libraries/vendor/woocommerce/templates folder.
I tried to overwrite some minor stuff by following the best practices - I placed the updated file in the same folder structure as the parent theme, and I also tried by placing it in theme_child/woocommerce/ folder as it's expected for plugin overwrites.
None of these gave me the desired outcome. The only way is to change the parent theme, which I want to prevent if possible.
My end goal is to change the HTML output which as far as I can see is in the template and not in any specific function that I can easily replace. I am not experienced in WP development so I might be missing some obscure detail.
Share Improve this question edited Jan 4, 2019 at 19:29 Stoinov asked Jan 3, 2019 at 18:40 StoinovStoinov 1115 bronze badges1 Answer
Reset to default 0Try creating the same structure in your child theme.
child_theme/core/libraries/vendor/woocommerce/templates
本文标签: pluginsHow to overwrite corelibrariesvendor template with child theme
版权声明:本文标题:plugins - How to overwrite corelibrariesvendor template with child theme 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749043600a2307517.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论