Home Forums WoodMart support forum Change mini cart heading

Change mini cart heading

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #584841

    waynep16
    Participant

    Your buttons say Add to “BASKET” but the sidebar says shopping “CART” these are two different words, we want this to be consistent.

    How can we update the text using a function NOT translation plugin or loco translate etc

    See – https://s3.amazonaws.com/i.snag.gy/rZObe6.jpg

    #584968

    Hung Pham
    Keymaster

    Hi waynep16,

    Thanks for reaching to us.

    I kindly recommend you to change this word by using LocoTranslate plugin or you need to change it directly in theme file in Parent theme.

    Regards,

    #585005

    waynep16
    Participant

    You are advising me to edit the core theme ? Why such bad advice? Can you send this to another support person please ? There are other better ways to do this. I don’t want to use a 3rd party plugin and I don’t want to edit core theme! Awful advice.

    Please supply a better solution like function for child theme. Thank you.

    #585036

    Hung Pham
    Keymaster

    Hi waynep16,

    Please try to add the code below in the functions.php file in your child theme.

    add_filter('gettext', function ($translation, $text, $domain) {
    	if ($text === 'Shopping cart') {
    		return 'Shopping basket';
    	}
    	return $translation;
    }, 10, 3);

    Regards,

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