I am looking for a way to insert a custom content between the product title and its short description on the product page in WooCommerce. So far I was only able to add a custom content at the beginning of the short description with the following code:

function insert_content( $post_excerpt )  {
      $content = 'My custom content';
       return $content.'<br>'.$post_excerpt; } 
add_filter('woocommerce_short_description', 'insert_content', 10, 1);

However, I need this content to be between the product title and the short description title, not below this last one. I guess I am using the wrong hook but the few others I’ve tried don’t work. Any ideas?

Read more here: Add content above the product short description on the product page in WooCommerce


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: