在我的 wordpress 主题中覆盖 email-header.php

Overwriting email-header.php in my wordpress theme

我更改了电子邮件-header.php 文件,所以我创建了一个新目录和文件...

my_theme/woocommerce/templates/emails/email-header.php

我已经对文件进行了更改,但我的网站没有接收它,它仍在使用默认的 woocommerce 模板。

有人知道如何强制 woocommerce 使用我的新文件吗?

你的路径完全错误......而不是:

my_theme/woocommerce/templates/emails/email-header.php

必须是 (没有 "templates" 子文件夹):

my_theme/woocommerce/emails/email-header.php