• Resolved liz1cp

    (@liz1cp)


    On the product page, under product tabs, I want to remove the huge titles that shows when you click on a tab.

    For description, I easily found a solution that works:
    add_filter( ‘woocommerce_product_description_heading’, ‘__return_null’ );

    But I can’t find a solution for the Reviews tab

    You would think that logically, it would be something like
    add_filter( ‘woocommerce_product_reviews_heading’, ‘__return_null’ );
    or
    add_filter( ‘woocommerce_reviews_heading’, ‘__return_null’ );

    But nope. Those don’t work.

    Does anyone know how I can remove that Reviews title under the tab?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Something like:

    h2.woocommerce-Reviews-title {display:none;}

    In Appearance-Custonse-Additional CSS

    Copy the ‘single-product-reviews.php’ file from the woocommerce plugin folder to your theme folder and make the desired adjustments.

    Thread Starter liz1cp

    (@liz1cp)

    I copied single-product-reviews.php to my child theme folder, and removing

    <h2 class=”woocommerce-Reviews-title”>
    <?php
    $count = $product->get_review_count();
    if ( $count && wc_review_ratings_enabled() ) {
    /* translators: 1: reviews count 2: product name */
    $reviews_title = sprintf( esc_html( _n( ‘%1$s review for %2$s’, ‘%1$s reviews for %2$s’, $count, ‘woocommerce’ ) ), esc_html( $count ), ‘<span>’ . get_the_title() . ‘</span>’ );
    echo apply_filters( ‘woocommerce_reviews_title’, $reviews_title, $count, $product ); // WPCS: XSS ok.
    } else {
    esc_html_e( ‘Reviews’, ‘woocommerce’ );
    }
    ?>
    </h2>

    did the trick.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘how to hide/remove “Reviews” title in Reviews tab’ is closed to new replies.