• Resolved birrwerk

    (@birrwerk)


    Hey guys,
    i have a child theme with a woocommerce folder. Inside this i have the same template structure as the woocommerce plugin folder. Now i want override the email template files, but when i copy the email-header.php, nothing happens.

    How can i override the email templates?

    Thanks for help.

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Remember that overriding the template folder means you need to mimic the /templates/ folder structure as well. This means if you’re overriding a file within the /emails/ sub-folder, you need to create that sub-folder within your theme as well. Do you have email-header.php within the /emails/ template folder?

    Thread Starter birrwerk

    (@birrwerk)

    Ok, i have found the issue. The folder structure inside the theme may not be the same.
    Correct structure: custom-theme/woocommerce/emails/email-header.php
    Now it works perfect.

    Thread Starter birrwerk

    (@birrwerk)

    Thanks for help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Override email template’ is closed to new replies.