Overwriting Woocommerce template within Avada Child Theme not working
-
I need to overwrite my-account Woocommerce template. In order to do so using child theme I tried the following solutions:
1. copied my-account.php file from woocommerce/templates into wp-content/themes/Avada-Child-Theme/woocommerce/myaccount
2. in line 9 (just below comments) of my-account.php added this line:die(‘test’);
> no expected result (message ‘test’).
3. Also tried the above with my-account.php file located in
wp-content/themes/Avada-Child-Theme/woocommerce/templates/myaccount
no expected result.
4. Also tried the above with folder:
wp-content/themes/Avada/woocommerce/myaccount
> no expected result.
5. Also tried the above within folder:
wp-content/plugins/woocommerce/templates/myaccount
and this worked, but it is not a good practice.
What I am doing wrong?
I am using WP 4.1, Woocommerce 2.2.10 and Avada Theme 3.7.3 with Avada Child Theme installed and active.
Regarding point 1. on System Status Woocommerce page I see this:
Avada/woocommerce/cart/cart.php,
Avada/woocommerce/cart/shipping-calculator.php,
Avada/woocommerce/checkout/form-checkout.php,
Avada/woocommerce/checkout/review-order.php,
Avada/woocommerce/checkout/thankyou.php,
Avada/woocommerce/content-product.php,
Avada/woocommerce/loop/loop-start.php,
Avada/woocommerce/loop/pagination.php,
Avada/woocommerce/myaccount/form-edit-address.php,
Avada-Child-Theme/woocommerce/myaccount/my-account.php,
Avada/woocommerce/single-product/add-to-cart/variable.php,
Avada/woocommerce/single-product/product-image.php,
Avada/woocommerce/single-product/product-thumbnails.php,
Avada/woocommerce/single-product/short-description.php,
Avada/woocommerce/single-product/tabs/description.php,
Avada/woocommerce/single-product/title.phpSo, it seems to be ok, but my changes do not affect the template. I also tried to make other changes, like adding some text inside p html tag – no effect.
Please help!
EDIT:
I generated list of active plugins:
` [0]=> string(29) “gravityforms/gravityforms.php”
[1]=> string(27) “LayerSlider/layerslider.php”
[2]=> string(25) “duplicator/duplicator.php”
[3]=> string(27) “fusion-core/fusion-core.php”
[4]=> string(58) “gravity-forms-css-ready-selector/gf-readyclasses-addon.php”
[5]=> string(23) “revslider/revslider.php”
[6]=> string(21) “woochimp/woochimp.php”
[7]=> string(49) “woocommerce-customizer/woocommerce-customizer.php”
[8]=> string(71) “woocommerce-gravityforms-product-addons/gravityforms-product-addons.php”
[9]=> string(51) “woocommerce-pdf-invoice/woocommerce-pdf-invoice.php”
[10]=> string(65) “woocommerce-points-and-rewards/woocommerce-points-and-rewards.php”
[11]=> string(61) “woocommerce-product-details-customiser/details-customiser.php”
[12]=> string(27) “woocommerce/woocommerce.php”
[13]=> string(39) “woothemes-updater/woothemes-updater.php”`I am using Child Theme provided by with Avada theme, have everything up-to-date. Is it possible that some of active plugins cause Woocommerce to ignore my woocommerce templates in child theme folder? I don’t want to deactivate them as it might crash my previous work.
- The topic ‘Overwriting Woocommerce template within Avada Child Theme not working’ is closed to new replies.