How to override templates

You can override from your theme all the templates that you can find in the plugin “templates” folder.

Override templates

To override the template from your theme, copy the file you want to change and paste it in the theme woocommerce folder (create one if not already available.

If the file you want to override is in a sub-section of the plugin templates folder, make sure of recreating the same structure in the theme woocommerce folder.

Let’s make an example.
Suppose that we want to override the my-giftcards.php template.

The file is within the plugin in templates -> myaccount.

Plugin file structure

To override the file, you need to recreate the same structure within your theme and paste the file in the woocommerce -> templates -> myaccount path.

Theme file structure