Merge pull request #13686 from woocommerce/fix-13660

Use h2 in shortcodes and product loops
This commit is contained in:
Claudio Sanches 2017-03-21 10:22:14 -03:00 committed by GitHub
commit fadfa4d903
1 changed files with 1 additions and 3 deletions

View File

@ -580,9 +580,7 @@ if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) {
* Show the product title in the product loop. By default this is an H3.
*/
function woocommerce_template_loop_product_title() {
$tag = is_product_taxonomy() || is_shop() ? 'h2' : 'h3';
echo '<' . $tag . ' class="woocommerce-loop-product__title">' . get_the_title() . '</' . $tag . '>';
echo '<h2 class="woocommerce-loop-product__title">' . get_the_title() . '</h2>';
}
}
if ( ! function_exists( 'woocommerce_template_loop_category_title' ) ) {