diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php
index b3a201eeb65..dc06cf17590 100644
--- a/includes/wc-template-functions.php
+++ b/includes/wc-template-functions.php
@@ -578,8 +578,10 @@ 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() {
- echo '
' . get_the_title() . '
';
+ 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 . '>';
}
}
if ( ! function_exists( 'woocommerce_template_loop_category_title' ) ) {
@@ -589,14 +591,14 @@ if ( ! function_exists( 'woocommerce_template_loop_category_title' ) ) {
*/
function woocommerce_template_loop_category_title( $category ) {
?>
-
+
name;
if ( $category->count > 0 )
echo apply_filters( 'woocommerce_subcategory_count_html', ' (' . $category->count . ')', $category );
?>
-
+
get_review_count() ) )
- printf( _n( '%s review for %s%s%s', '%s reviews for %s%s%s', $count, 'woocommerce' ), $count, '', get_the_title(), '' );
+ printf( esc_html( _n( '%s review for %s%s%s', '%s reviews for %s%s%s', $count, 'woocommerce' ) ), $count, '', get_the_title(), '' );
else
_e( 'Reviews', 'woocommerce' );
?>
@@ -67,7 +67,9 @@ if ( ! comments_open() ) {
$comment_form = array(
'title_reply' => have_comments() ? __( 'Add a review', 'woocommerce' ) : sprintf( __( 'Be the first to review “%s”', 'woocommerce' ), get_the_title() ),
- 'title_reply_to' => __( 'Leave a Reply to %s', 'woocommerce' ),
+ 'title_reply_to' => __( 'Leave a Reply to %s', 'woocommerce' ),
+ 'title_reply_before' => '',
'comment_notes_after' => '',
'fields' => array(
'author' => '
+
+
diff --git a/templates/single-product/tabs/description.php b/templates/single-product/tabs/description.php
index a2d41b22983..036f380757d 100644
--- a/templates/single-product/tabs/description.php
+++ b/templates/single-product/tabs/description.php
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
global $post;
-$heading = esc_html( apply_filters( 'woocommerce_product_description_heading', __( 'Product Description', 'woocommerce' ) ) );
+$heading = esc_html( apply_filters( 'woocommerce_product_description_heading', __( 'Description', 'woocommerce' ) ) );
?>
diff --git a/templates/single-product/up-sells.php b/templates/single-product/up-sells.php
index 6b9a59dac5c..9464d5fc0d5 100644
--- a/templates/single-product/up-sells.php
+++ b/templates/single-product/up-sells.php
@@ -43,9 +43,9 @@ $woocommerce_loop['columns'] = apply_filters( 'woocommerce_up_sells_columns', $c
if ( $products->have_posts() ) : ?>
-
+
-
+
@@ -57,7 +57,7 @@ if ( $products->have_posts() ) : ?>
-
+