• Resolved csit

    (@calmsmile)


    my website have 2 languages , so I have 2 my account page, but the User Registration plugin settings only 1 my account page take effect,example: my default language is English and I translate the my account page link to another language like French, I visit my account page and the default language is work perfectly but when I switch French , the endpoint tab link is alway english

Viewing 2 replies - 1 through 2 (of 2 total)
  • Saroj Shah

    (@wpeverestsupportrep)

    Hi @calmsmile

    Thanks for writing in,

    Please refer to the documentation in the link below.
    https://docs.wpeverest.com/user-registration/docs/how-to-translate-user-registration-to-multiple-languages/
    I hope this helps.

    Regards!

    Thread Starter csit

    (@calmsmile)

    I found the way to solve this question,
    I copy the /user-registration/myaccount/ folder and files in my child theme
    I edit the dashboard.php and change the line:
    esc_url( ur_logout_url( ur_get_page_permalink( 'myaccount' ) ) )
    to
    esc_url( ur_get_endpoint_url( 'user-logout' ))

    and then I edit the navigation.php and change the line:
    esc_url( ur_get_account_endpoint_url( $endpoint ) );
    to
    esc_url( ur_get_endpoint_url( $endpoint ) );

    then after save, my account page endpoint link will display correctly when I click the language switcher to switch other language

    • This reply was modified 3 years, 7 months ago by csit.
    • This reply was modified 3 years, 7 months ago by csit.
    • This reply was modified 3 years, 7 months ago by csit.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPML support ?’ is closed to new replies.