How to change " woocommerce_template_loop_product_title" h2 to div with PHP

I would like to change the h2 to "woocommerce_template_loop_product_title" in H3 I try this code, it work but it doesn’t remove the old function and the link was deleted with this function:

remove_action( 'woocommerce_shop_loop_item_title','woocommerce_template_loop_product_title', 10 ); add_action('woocommerce_shop_loop_item_title', 'your_custom_function_call', 10 ); function your_custom_function_call() {      echo '<h3 class="' . esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ) . '">' . get_the_title() . '</h3>'; } 
Asked on July 16, 2020 in php.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.