Overriding specific third party Woocommerce plugin templates

前端 未结 1 594
予麋鹿
予麋鹿 2021-01-15 04:14

I\'m using a Woocommerce based plugin called Mix \'n Match Products.

This plugin sits inside /plugins/woocommerce-mix-and-match-products/
This fold

相关标签:
1条回答
  • 2021-01-15 04:50

    The way to do it is a little bit different. All WooThemes woocommerce plugins use the default woocommerce templates folder described in this documentation:

    2 cases:

    1. You have already a woocommerce folder in your active child theme (or theme).
      Copy from plugins/woocommerce-mix-and-match-products/templates/single-product/mnm/
      to themes/your_active_theme/woocommerce/single-product/
      And plugins/woocommerce-mix-and-match-products/templates/single-product/add-to-cart/mnm.php
      inside themes/your_active_theme/woocommerce/single-product/add-to-cart/

    2. You don't have any woocommerce folder in your active child theme (or theme).
      Copy from plugins/woocommerce-mix-and-match-products/templates/
      inside your active child theme (or theme) and rename it woocommerce.

    So in your case you will have: themes/storevilla-child/woocommerce/

    Reference: WooCommerce Template Structure + Overriding Templates via a Theme

    0 讨论(0)
提交回复
热议问题