# Change the product loop title tags from WooCommerce in the Kadence theme

**URL:** <https://community.mainwp.com/t/change-the-product-loop-title-tags-from-woocommerce-in-the-kadence-theme/5835>\
**Category:** Code Snippets\
**Tags:** wordpress\
**Created:** [October 28, 2022, 9:28pm UTC](https://community.mainwp.com/t/change-the-product-loop-title-tags-from-woocommerce-in-the-kadence-theme/5835 "2022-10-28T21:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian-moran](https://community.mainwp.com/user_avatar/community.mainwp.com/sebastian-moran/32/16_2.png) [@sebastian-moran](https://community.mainwp.com/u/sebastian-moran)\
**Post date:** [October 28, 2022, 9:28pm UTC](https://community.mainwp.com/t/change-the-product-loop-title-tags-from-woocommerce-in-the-kadence-theme/5835/1 "2022-10-28T21:28:06Z")

</div>

Change the product loop title tags from WooCommerce in the Kadence theme on child sites.

**Snippet Type**

`Execute on Child Sites`

**Snippet**

```auto
function init_custom_woocommerce_product_loop_tags() {
 if ( class_exists( 'Kadence\Theme' ) ) {
    $kadence_theme_class = Kadence\Theme::instance();
    remove_action( 'woocommerce_shop_loop_item_title', array( $kadence_theme_class->components['woocommerce'], 'archive_title_with_link' ) );
    add_action( 'woocommerce_shop_loop_item_title', 'custom_kadence_archive_title' );
 }
}
add_action( 'init', 'init_custom_woocommerce_product_loop_tags' );

/**
 * Show the product title in the product loop.
 */
function custom_kadence_archive_title() {
 global $product;

 $link = apply_filters( 'woocommerce_loop_product_link', get_the_permalink(), $product );
 echo '<h3 class="' . esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ) . '"><a href="' . esc_url( $link ) . '" class="woocommerce-LoopProduct-link-title woocommerce-loop-product__title_ink">' . get_the_title() . '</a></h3>';
}

```

---

<div class="post-metadata">

**Author:** ![system](https://community.mainwp.com/uploads/default/original/2X/4/4cfc87ac67e4ebdbfa0bbf0b19c8657f35a29a5b.png) [@system](https://community.mainwp.com/u/system)\
**Post date:** [November 27, 2022, 9:28pm UTC](https://community.mainwp.com/t/change-the-product-loop-title-tags-from-woocommerce-in-the-kadence-theme/5835/2 "2022-11-27T21:28:26Z")

</div>

Closed on November 27, 2022, 9:28pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
