Hello, good afternoon, how are you?
I have added some text to my product single page from the theme’s function.php. The problem is that by adding it with code, it does not allow me to translate this text on the pages in other languages. The code I used is this:
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_custom_content', 12 );
function woocommerce_template_custom_content(){
echo "<h4>Handcrafted ✂︎</h4>";
}
What I want to do is add, instead of this text, a call to a static block that I have already created, and place it in this same position so I can translate it.
I need help on how I can create the code in function.php to add the static block that I want in this same place of the text created in the code that I mentioned.