Added filter for product title classes within product loop
This commit is contained in:
parent
0d901a2eca
commit
aee5cf2bff
|
@ -1082,7 +1082,7 @@ if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) {
|
|||
* Show the product title in the product loop. By default this is an H2.
|
||||
*/
|
||||
function woocommerce_template_loop_product_title() {
|
||||
echo '<h2 class="woocommerce-loop-product__title">' . get_the_title() . '</h2>'; // phpcs:ignore
|
||||
echo '<h2 class="' . apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) . '">' . get_the_title() . '</h2>'; // phpcs:ignore
|
||||
}
|
||||
}
|
||||
if ( ! function_exists( 'woocommerce_template_loop_category_title' ) ) {
|
||||
|
|
Loading…
Reference in New Issue