Archive product – h3 instead of h2
-
Hello,
I’m currently working on replacing the
<h2>
tag for “Archive Product” titles with<h3>
using the following code snippet (which functions correctly with Elementor Pro and the “Products” widget). However, I’m encountering an issue where both<h3>
and<h2>
tags are appearing for product titles simultaneously.Code Used:
// Remove default WooCommerce title display
remove_action( ‘woocommerce_shop_loop_item_title’, ‘woocommerce_template_loop_product_title’, 10 );// Add custom function to display title with tag
add_action( ‘woocommerce_shop_loop_item_title’, ‘custom_woocommerce_template_loop_product_title’, 10 );function custom_woocommerce_template_loop_product_title() {
echo ” . get_the_title() . ”;
}Could you please provide guidance on how to ensure that only
<h3>
tags are used for product titles while utilizing the ShopEngine plugin? Are there specific settings or additional customizations required to achieve this?Thank you for your prompt assistance in resolving this matter.
- You must be logged in to reply to this topic.