Reply 319590 to: need to use woocommerce_before_shop_loop_item_title hook

Avatar: La Tienda Vinos
La Tienda Vinos
Participant
March 14, 2022 at 20:06

I did it in this way.. please tell me if it is ok and nothing will be broken on future

remove_action('woocommerce_after_shop_loop_item_title','woocommerce_template_loop_price', 10 );

function customize_shop_page_product_title() {
	
	$custom = 'hello!';   
	echo '<h4 class="product-title"><a href="'.get_the_permalink().'">'.$custom.'</a></h4>';

	woocommerce_template_loop_price();

}
add_action('woocommerce_after_shop_loop_item_title','customize_shop_page_product_title', 10);
Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.