• Resolved ritamopinto

    (@ritamopinto)


    Hello,
    I’m trying to translate the login form message and coupon form to my language and it’s not working. I’ve already used plugins to translate, edited the php files and also added the following code with code snippets:
    add_filter( ‘woocommerce_checkout_logged_in_message’, function($message) {
    return ‘message’;
    });

    but the messages remain the same… Is there any update I can do to see these changes?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello,

    on my test website the login form message does change when using your PHP snippet. Could you make me a screenshot of the exact PHP snippet?

    Thread Starter ritamopinto

    (@ritamopinto)

    Hello,

    Yes: https://freeimage.host/i/EKFXg2

    I’ve also edited the php file with FileZilla and it remains the same.
    I’m using Elementor to build the page. Can it be overriding the code?

    Plugin Author SilkyPress

    (@diana_burduja)

    The code in the screenshot uses the “woocommerce_login_filter” instead of the “woocommerce_checkout_logged_in_message” filter.

    Would you try the following code:

    `add_filter( “woocommerce_checkout_logged_in_message”, function( $message ) {
    return ‘TESTE RITA’;
    });

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with login form message’ is closed to new replies.