Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #602121

    I had input the following code to change the name of the tab “Additional Information”

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

    $tabs[‘description’][‘title’] = __( ‘More Information’ ); // Rename the description tab
    $tabs[‘reviews’][‘title’] = __( ‘Ratings’ ); // Rename the reviews tab
    $tabs[‘additional_information’][‘title’] = __( ‘Product Data’ ); // Rename the additional information tab

    return $tabs;

    }

    I attempted to make a change and started getting a fatal error shown in the site in the private content. I tried to re-upload the original functions.php code and that is not helping.

    Any ideas to get the site back up?

    thanks!

    #602181

    Hi kprice2690!

    Please change your code to following one

    add_filter( 'woocommerce_product_tabs', 'woo_new_rename_tabs', 98 );
    function woo_new_rename_tabs( $tabs ) {
    $tabs['description']['title'] = __( 'More Information' );	// Rename the description tab
    $tabs['reviews']['title'] = __( 'Ratings' );	// Rename the reviews tab
    $tabs['additional_information']['title'] = __( 'Product Data' );	// Rename the additional information tab
    return $tabs;
    }

    Cheers!
    Yigit

    #602188

    Hey kprice2690!

    Please provide us with ftp access, so we can assti you with the issue fix.

    Best regards,
    Basilis

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.