Global block hooked on single product

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…

Hello @avanaa,

Thanks for writing in!

You are inserting a global block after the floated Div elements. You need to clear the floats so that the global block will display properly. You can make use of this Clear property in a custom CSS to get around this issue.

Edit your global block and insert it in the CSS:

Kindly let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.