• reva123

    (@reva123)


    Hello,

    Anyone know how to change sign out to log out under woocommerce dashboard.

    Thanks
    Reva

    • This topic was modified 8 years ago by reva123.
    • This topic was modified 8 years ago by reva123.
    • This topic was modified 8 years ago by reva123.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Ivan

    (@zettz)

    Just copy the dashboard.php from woocommerce to your theme and edit it.
    For example: “themes/your-theme/woocommerce/myaccount/”
    Then look for that line. Thats all.

    Thread Starter reva123

    (@reva123)

    <?php
    		echo sprintf( esc_attr__( 'Hello %s%s%s (not %2$s? %sLog out%s)', 'woocommerce' ), '<strong>', esc_html( $current_user->display_name ), '</strong>', '<a href="' . esc_url( wc_logout_url( wc_get_page_permalink( 'myaccount' ) ) ) . '">', '</a>' );
    	?>

    its not working, I tried to change other text and that is working fine

    This string is can be translated. “Translate” in this context also means using different words in the same language.

    So try Loco Translate:
    https://www.ads-software.com/plugins/loco-translate/
    Activate, then:
    Dashboard > Loco Translate > Plugins > WooCommerce > select your language > Edit

    If you have a theme override template for dashboard.php, look at
    Dashboard > Loco Translate > Themes > your-theme-name > etc

    In either case, click the Sync button, then filter for the string you want to change.

    Save in the custom location to make your translations update-safe:
    https://localise.biz/wordpress/plugin/manual/msginit#locations

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change (not XXXX? Sign out) to (not XXXX? Log out)’ is closed to new replies.