HI you can easily do it by unhook that function. and then add action your custom function .You can use my code
remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
add_action( 'woocommerce_shop_loop_item_title', 'my_template_loop_product_title', 10 );
function my_template_loop_product_title() {
echo '<h2 class="h4"><a href="'.get_the_permalink().'">' . get_the_title() . '</a></h2>';
}
Hi,
Thank you for your quick reply. It seems to be a good way to do it, but I don’t know how I can exclude sections IDs. I am very bad at coding, please let me know how to do it.
Thanks
If the elements are rendered with a CSS ID you can use CSS to define the format of the titles etc.
Something like:
#2345 {
font-size: 12px;
font-weight: normal;
}
where #2345
is the section ID.
I hope that helps you to figure it out.
Feel free to get back to us if you have further questions.
Hi @zelph14,
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!
If you have further questions, please feel free to open a new topic.
Thanks.