Home Forums WoodMart support forum Add the same extra block in all products code… Reply To: Add the same extra block in all products code…

#456749

stvlahos
Participant

I think that you can not understand me .

I would like in the position where the extra block is located to add an html code/block to all products!!!

I have more than 500 products! Could someone tell me in which php file is located!
Or to tell me the right function ?

with the following code I meet problems. The text is going under the tabs but I would like exactly at position of extra block!

add_action( ‘woocommerce_single_product_summary’, ‘custom_shortcode’, 40 );

function custom_shortcode() {
echo do_shortcode(‘[html_block id="16367"]‘);
}

I do not want footer content neither prefooter nor to make new template!
Do dont tell me again about product layout, builder etc. .

just one piece of code to all product at the position of extra block