New Landing How can we help? Cardinal change text in the shopping cart

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Cardinal
  • #148070
    miguelsoler
    Member
    Post count: 76

    I’m trying to change the text “Unfortunately, your cart is empty.” shopping cart button in the main menu and I can not find where to change it.
    Can you help me?
    Thank you so much.
    Miguel

    Attachments:
    You must be logged in to view attached files.
    #148110
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    function sf_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Related Products' :
    $translated_text = __( 'Unfortunately, your cart is empty.', 'woocommerce' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    

    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 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