• Hi,

    I am having an issue with getting the “Gift Cards” menu item to translate in “my account”. I have found 3 instances of “Gift Cards” and all are translated. But the WooCommerce Account page still shows the untranslated texts.

Viewing 1 replies (of 1 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    The context of that string is “my account endpoint title“, so you must search for the string under that context. However, you can also change it by adding the following code inside the functions.php file of your active child theme:

    if ( ! function_exists( 'yith_wcgc_my_account_menu_item_title_custom' ) ) {
        function yith_wcgc_my_account_menu_item_title_custom() {
            return esc_html_x( 'your custom text', 'my account endpoint title', 'yith-woocommerce-gift-cards' );
        }
        add_filter( 'yith_wcgc_my_account_menu_item_title', 'yith_wcgc_my_account_menu_item_title_custom', 99 );
    }

    Check it out and tell us any doubt, please.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Translation My account page not working’ is closed to new replies.