Child theme issue with template tags
-
Hello, what is the proper way of overriding the template file for showing custom product labels (such as sale, offer etc).
I have a plugin that interferes with this part of the theme and I want to add custom code in the child theme to fix some issues.
I have attempted to add a file to the child theme copied from:
– woodmart/inc/integrations/woocommerce/template-tags.php
– to woodmart-child/inc/integrations/woocommerce/template-tags.php
But every change I make in that file does not reflect in what I see in the frontend in Woocommerce.
Hello,
This file could not be modified.
You can copy the complete function which contains the product label, then paste it in your child themes functions.php file and modify it as you require.
Best Regards