Hi, @garlicandwaters. Thank you for your interest.
I don’t see the HTML tags for badge product into your link. Are you using child theme/customised theme?
Thanks,
Carles Martin
wp-centrics support team
Yes, should I do something different if this is the case?
Hi!
Cooming Soon Badge for WC uses this hook into the products loop:
woocommerce_before_shop_loop_item_title
…this are standard hook in WC loop templates, please, check if your template have this code in product loop:
do_action( ‘woocommerce_shop_loop_item_title’ );
…and the same in the single page product, with:
woocommerce_before_template_part
woocommerce_after_template_part
Please, give me feedback about
Carles Martin.
Hi Carles!
Can you tell me if I should add code to the functions.php file on child theme? What code exactly should I add?
Thx
Hi, @garlicandwaters… not, the code must be inside the products loop:
do_action( ‘woocommerce_shop_loop_item_title’ );
…and in the single product template:
do_action( ‘woocommerce_after_main_content’ );
(please, forget woocommerce_before_template_part / woocommerce_after_template_part, my mistake)
…please, take a look into the woocommerce templates:
wp-content\plugins\woocommerce\templates\content-product.php
wp-content\plugins\woocommerce\templates\single-product.php
…maybe this templates are overrided in your theme, take a look into your theme or child theme folder, check a /woocommerce folder, same file names override WC default templates, if this is the case, check if it call the actions in the same way as WC does
Kind regards,
Carles Martin
wp-centrics support team