1. Home
  2. /
  3. Forum

Forum

How to change produ...
 
Notifications
Clear all

How to change product heading tag on Woocommerce product single or details page?

1 Posts
1 Users
0 Reactions
644 Views
(@devsam)
Member Admin
Joined: 5 years ago
Posts: 18
Topic starter  
remove_action('woocommerce_single_product_summary','woocommerce_template_single_title',5);
add_action('woocommerce_single_product_summary', 'woocommerce_product_custom_title',5);
function woocommerce_product_custom_title() {
	echo '<h1 itemprop="name" class="edgtf-single-product-title product-title product_title entry-title">' . get_the_title() . '</h1>';

}

   
Quote
Share:
Reviews & Ratings Get your stoe online with Shopify in 60 minutes Shop Now