0
votes

screenshot of what i am trying to say I want to add some text and pictures after the tab section and before "you may also like..." section in a woocommerce single product page.

I got to know about two hooks:

woocommerce_after_single_product_summary

woocommerce_after_single_product

but in both cases, content is adding after "you may also like..." section

I tried this below code but text in showing after "you may also like..." section.

function add_text_in_between(){
 echo 'i want to show immediately after tab section but  before "you may also like..." section';
}
add_action('woocommerce_after_single_product', 'add_text_in_between');
2
i cant get your mean. please make me clear with adding screenshot to your question.Mostafa
I added a screenshot. Please have a lookSakib Al Mahmood

2 Answers

0
votes
add_action( 'woocommerce_after_single_product_summary', 'product_custom_content', 10);

function product_custom_content() {
    
    echo 'Your Content area';
    
}
0
votes

Old question, but I found the answer :

add_action('woocommerce_product_after_tabs', 'add_text_in_between', 20);

this hook is not documented