• Resolved jeanzz

    (@jeanzz)


    Hi, i have renamed the products tabs accordingly to below, but only successfully remove heading for reviews / what are other people saying, but not the description heading. Have pasted the below codes in functions file. Kindly advise how should i remove the description heading please?

    u may refer image here > https://pasteboard.co/GIHvFoL.png

    `}

    add_filter( ‘woocommerce_reviews_heading’, ‘remove_reviews_heading’ );
    function remove_reviews_heading() {
    return ”;
    }

    add_filter( ‘woocommerce_description_heading’, ‘remove_description_heading’ );
    function remove_description_heading() {
    return ”;
    }

    add_filter( ‘woocommerce_product_tabs’, ‘woo_rename_tabs’, 98 );
    function woo_rename_tabs( $tabs ) {

    $tabs[‘reviews’][‘title’] = __( ‘What People Are Saying’ ); // Rename the reviews tab
    $tabs[‘description’][‘title’] = __( ‘Details’ ); // Rename the description tab

    return $tabs;

    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try this snippet:

    add_filter( 'woocommerce_product_description_heading', 'remove_description_heading' );
    function remove_description_heading() {
      return '';
    }
    Thread Starter jeanzz

    (@jeanzz)

    it works perfectly! thanks much! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Description Heading Cant Be Remove’ is closed to new replies.