New Landing How can we help? Themeforest Theme Support Neighborhood Changing 'Additional Information' Tab text

Viewing 6 posts - 1 through 6 (of 6 total)
  • #152581
    GTS75
    Member
    Post count: 240

    Is it possible to change the text of the Additional Information tab on product pages? I’d like to change it to Design & Fit.

    Thanks

    #152589
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    <?php
    function sf_text_strings( $translated_text, $text, $domain ) {
    $translated_text = strtolower($translated_text);
    switch ( $translated_text ) {
    case 'additional information' :
    $translated_text = __( 'Design & Fit', 'woocommerce' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    ?>
    

    Thanks
    Mohammad

    #155657
    GTS75
    Member
    Post count: 240

    Thanks for the reply! Where in the functions file should I place the code?

    #155670
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    You can place it at the end of the file, after the last line.
    -Rui

    #155782
    Mairena
    Member
    Post count: 66

    Hello,

    One question about this, after update the theme (in the future)… this changes will be lost?

    Regards!

    #155798
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Always place the custom code at functions.php of child theme.
    Thanks
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register