Hello!
I’m trying to hook a global block to each woocommerce single product page and it’s breaking something!
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_single_extra', 1 );
function woocommerce_single_extra() {
if (is_product()) {
echo do_shortcode('[cs_gb class="mts pts x-hide-xs x-hide-sm" name="produit_info"]');
}
}
This seems to work, but the add to cart button is now “unclickable”!
Please I can’t figure out what’s happening…