Answer the question
In order to leave comments, you need to log in
How to add css style to wordpress hook?
There are product names in the product catalog, I want to style it, this hook is responsible for the output https://wp-kama.ru/plugin/woocommerce/hook/woocomm...
How can I hook a span or div with the class I need to it?
Answer the question
In order to leave comments, you need to log in
For example something like this
// Добавить обертку вокруг заголовка
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
add_action( 'woocommerce_shop_loop_item_title', 'storm_template_loop_product_title', 10 );
function storm_template_loop_product_title() {
?>
<div class="product-name">
<?php woocommerce_template_loop_product_title() ?>
</div>
<?php
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question