{"id":1096,"date":"2020-11-16T11:15:32","date_gmt":"2020-11-16T11:15:32","guid":{"rendered":"https:\/\/kadence-theme.com\/?post_type=knowledgebase&#038;p=1096"},"modified":"2026-01-02T17:08:42","modified_gmt":"2026-01-02T17:08:42","password":"","slug":"how-to-change-the-woocommerce-product-loop-title-tags","status":"publish","type":"docs","link":"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-theme\/how-to-change-the-woocommerce-product-loop-title-tags\/","title":{"rendered":"How to Change the WooCommerce Product Loop Title Tags"},"content":{"rendered":"\n<p>While we don&#8217;t suggest you change the title tags from an H2 tag, there may be some reason you want to do this. With the Kadence theme, you will need to use the <a class=\"rank-math-link\" href=\"https:\/\/kadence-theme.com\/knowledge-base\/advanced\/how-to-add-a-custom-filter-or-function-with-code-snippets\/\" target=\"_blank\" rel=\"noopener\">Code Snippets plugin<\/a> to add the hooks for this. If you haven&#8217;t already used this plugin, install it from your plugin dashboard.<\/p>\n\n\n\n<p>The Code Snippet you need to add is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">\/**\n * Initiate the product title switch.\n *\/\nfunction init_custom_woocommerce_product_loop_tags() {\n if ( class_exists( 'Kadence\\Theme' ) ) {\n    $kadence_theme_class = Kadence\\Theme::instance();\n    remove_action( 'woocommerce_shop_loop_item_title', array( $kadence_theme_class-&gt;components['woocommerce'], 'archive_title_with_link' ) );\n    add_action( 'woocommerce_shop_loop_item_title', 'custom_kadence_archive_title' );\n }\n}\nadd_action( 'init', 'init_custom_woocommerce_product_loop_tags' );\n\n\/**\n * Show the product title in the product loop.\n *\/\nfunction custom_kadence_archive_title() {\n global $product;\n\n $link = apply_filters( 'woocommerce_loop_product_link', get_the_permalink(), $product );\n echo '&lt;h3 class=\"' . esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ) . '\"&gt;&lt;a href=\"' . esc_url( $link ) . '\" class=\"woocommerce-LoopProduct-link-title woocommerce-loop-product__title_ink\"&gt;' . get_the_title() . '&lt;\/a&gt;&lt;\/h3&gt;';\n}\n<\/code><\/pre>\n\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading1096_01d11d-96, .wp-block-kadence-advancedheading.kt-adv-heading1096_01d11d-96[data-kb-block=\"kb-adv-heading1096_01d11d-96\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading1096_01d11d-96 mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading1096_01d11d-96[data-kb-block=\"kb-adv-heading1096_01d11d-96\"] mark.kt-highlight{font-style:normal;color:#f76a0c;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.wp-block-kadence-advancedheading.kt-adv-heading1096_01d11d-96 img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading1096_01d11d-96[data-kb-block=\"kb-adv-heading1096_01d11d-96\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<h2 class=\"kt-adv-heading1096_01d11d-96 wp-block-kadence-advancedheading\" data-kb-block=\"kb-adv-heading1096_01d11d-96\">Shop Kit Affiliate Product Titles<\/h2>\n\n\n\n<p>If you use <a href=\"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-shop-kit\/how-to-install-activate-kadence-shop-kit\/\">Kadence Shop Kit<\/a> + the <a href=\"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-shop-kit\/wooextras-open-affiliate-external-products-in-a-new-tab\/\">Affiliate Products feature<\/a>, the code above will need some adjustments. In this case, you can use the following Code Snippet instead:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">\/**\n * Initiate the product title switch.\n *\/\nfunction init_custom_woocommerce_product_loop_tags() {\n if ( class_exists( 'Kadence\\Theme' ) ) {\n    $kadence_theme_class = Kadence\\Theme::instance();\t \n    remove_action( 'woocommerce_shop_loop_item_title', array( $kadence_theme_class-&gt;components['woocommerce'], 'archive_title_with_link' ) );\t\n\tif ( class_exists('kt_affiliate_options')) {\n\t  remove_action( 'woocommerce_shop_loop_item_title', array( $GLOBALS['kt_affiliate_options'], 'wooextras_kadence_archive_title_with_link' ) );\t \n  \t}\n    add_action( 'woocommerce_shop_loop_item_title', 'custom_kadence_archive_title' );\n } \n  \n}\nadd_action( 'init', 'init_custom_woocommerce_product_loop_tags', 999 );\n\n\/**\n * Show the product title in the product loop.\n *\/\nfunction custom_kadence_archive_title() {\n global $product;\n\n $link = apply_filters( 'woocommerce_loop_product_link', get_the_permalink(), $product );\n echo '&lt;h3 class=\"' . esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ) . '\"&gt;&lt;a href=\"' . esc_url( $link ) . '\" class=\"woocommerce-LoopProduct-link-title woocommerce-loop-product__title_ink\"&gt;' . get_the_title() . '&lt;\/a&gt;&lt;\/h3&gt;';\n}<\/code><\/pre>\n\n\n<style>.wp-block-kadence-advancedheading.kt-adv-heading1096_372707-44, .wp-block-kadence-advancedheading.kt-adv-heading1096_372707-44[data-kb-block=\"kb-adv-heading1096_372707-44\"]{font-style:normal;}.wp-block-kadence-advancedheading.kt-adv-heading1096_372707-44 mark.kt-highlight, .wp-block-kadence-advancedheading.kt-adv-heading1096_372707-44[data-kb-block=\"kb-adv-heading1096_372707-44\"] mark.kt-highlight{font-style:normal;color:#f76a0c;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.wp-block-kadence-advancedheading.kt-adv-heading1096_372707-44 img.kb-inline-image, .wp-block-kadence-advancedheading.kt-adv-heading1096_372707-44[data-kb-block=\"kb-adv-heading1096_372707-44\"] img.kb-inline-image{width:150px;vertical-align:baseline;}<\/style>\n<p class=\"kt-adv-heading1096_372707-44 wp-block-kadence-advancedheading has-theme-palette-8-background-color has-background\" data-kb-block=\"kb-adv-heading1096_372707-44\"><strong>Note:<\/strong> <em>If you are using <a href=\"https:\/\/www.kadencewp.com\/help-center\/docs\/kadence-shop-kit\/product-templates-woo-templates\/\">Woo Templates<\/a>, you can use an Advanced Text Block + Dynamic Content to take complete control over Product Titles, voiding the need for the Code Snippet above. The snippet above is ideal for cases where Woo Templates are not in use.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While we don&#8217;t suggest you change the title tags from an H2 tag, there may be some reason you want to do this. With the Kadence theme, you will need to use the Code Snippets plugin to add the hooks for this. If you haven&#8217;t already used this plugin, install it from your plugin dashboard&#8230;.<\/p>\n","protected":false},"author":1265,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"doc_category":[409],"doc_tag":[],"knowledge_base":[6],"class_list":["post-1096","docs","type-docs","status-publish","hentry","doc_category-theme-woocommerce","knowledge_base-kadence-theme"],"year_month":"2026-04","word_count":429,"total_views":"6334","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"display_name":"Ben Ritner","author_link":"https:\/\/www.kadencewp.com\/help-center\/author\/britner\/"},"doc_category_info":[{"term_name":"Woocommerce","term_url":"https:\/\/www.kadencewp.com\/help-center\/knowledge-base\/kadence-theme\/theme-woocommerce\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"Kadence Theme","term_url":"https:\/\/www.kadencewp.com\/help-center\/knowledge-base\/kadence-theme\/","term_slug":"kadence-theme"}],"knowledge_base_slug":["kadence-theme"],"taxonomy_info":{"doc_category":[{"value":409,"label":"Woocommerce"}],"knowledge_base":[{"value":6,"label":"Kadence Theme"}]},"featured_image_src_large":false,"comment_info":0,"_links":{"self":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/1096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/users\/1265"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/comments?post=1096"}],"version-history":[{"count":4,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/1096\/revisions"}],"predecessor-version":[{"id":16555,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/docs\/1096\/revisions\/16555"}],"wp:attachment":[{"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/media?parent=1096"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/doc_category?post=1096"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/doc_tag?post=1096"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/www.kadencewp.com\/help-center\/wp-json\/wp\/v2\/knowledge_base?post=1096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}