Answer the question
In order to leave comments, you need to log in
How to add such a block?
Friends. I can not figure out how to display such a block.
The site works WP+Woocommerce Screenshot
attached. What needs to be displayed is highlighted in green.
Answer the question
In order to leave comments, you need to log in
What you need to do is to do it with hooks and in no case touch the plugin source files.
A complete list of hooks specifically for woocommerce can be found here: Woocommerce Hooks .
As for your issue. You need the hook: woocommerce_product_meta_start .
You need to add the following code to your active theme's functions.php file:
//Цепляем свою функцию
add_action( 'woocommerce_product_meta_start', 'woocommerce_infobox_single_before_meta' );
function woocommerce_infobox_single_before_meta() {
// Здесь можете вывести любой код, который вам нужно
echo '<div class="single-product-infobox">Дополнительная информация</div>';
}
In this place, in many topics, a brief description of the product is displayed.
To display something different, you need to redo the theme template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question