Tagged: single product
Hi
I’m using WP 4.3.1, Enfold 3.4.3 and Woocommerce 2.4.10 and need to place a shortcode below the product description and images on the single product page in WordPress so that it shows across 100% of the main content width – but can’t seem to get it in the right area. It’s either above the description area or below the related products. I have looked everywhere but can’t get it right.
Can you assist please?
Thanks in advance
Hi cbentley65!
Your probably wanting the “woocommerce_before_single_product” hook. Something like this should work.
add_action( 'woocommerce_before_single_product', 'enfold_customization_extra_product_content', 15 );
function enfold_customization_extra_product_content() {
echo do_shortcode("[your_shortcode]");
}
Regards,
Elliott
Hi Elliott
Many thanks – that puts the shortcode output *above* the product images and description. Is there a way to get it below, but before the related products, please?
It does display it full 100% width though.
Thanks again
Hey!
Send us a link to your page so we can take a look. You can set your reply as private if you wish.
Regards,
Elliott