Add Text or Shortcode under image of single product page

Hello There,

The code is incorrect. Please use this:

add_action( 'woocommerce_after_single_product_summary', 'html_x_woocommerce_output_related_products', 20 );
function html_x_woocommerce_output_related_products() { ?>
	Some CONTENT HERE
<?php }

Please let us know how it goes.

If I want it to be appeared below related products, then shall i add like this?

add_action( ‘woocommerce_after_single_product_summary’, ‘html_below_x_woocommerce_output_related_products’, 20 );
function html_below_x_woocommerce_output_related_products() { ?>
Some CONTENT HERE

<?php } Thank you

Hi There,

Unfortunately, no.
This woocommerce_after_single_product_summary determines the positions and also 20, which means priority of execution: https://developer.wordpress.org/reference/functions/add_action/
See this: https://screencast-o-matic.com/watch/cbXtf02vZj

.custom-cont {
    clear: both;
}

works just great. Appreciated!

You’re always welcome!

For other inquiries, feel free to open a new thread.

Cheers!

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