New Landing How can we help? Atelier Card in the header

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #255055
    jerome1978
    Member
    Post count: 48

    Hi,

    I would want to know how in the card on the header i can change the wording “view cart” and “checkout” ?
    What files php can i modified ?

    Thanks a lot
    Jerome

    #255088
    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 'View cart' :
    			$translated_text = __( 'Cart', $domain );
    			break;
                   case 'Proceed to checkout' :
    			$translated_text = __( 'Checkout', $domain );
    			break;
    	}
    	return $translated_text;
    }
    
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    

    Thanks
    Mohammad

    #255256
    jerome1978
    Member
    Post count: 48

    Hi,

    Thanks a lot

    #255261
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Glad to help you.
    Thanks
    Mohammad

    #255330
    jerome1978
    Member
    Post count: 48

    Hi,

    functions.php of child theme => ie i can put it at the beginning of this file “functions.php” ?
    Thks

    J

    #255333
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Yes but make sure it’s not in the commented out section

    – Kyle

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