If you want to change the default myaccount text that shows after login (“From your account dashboard you can view your recent orders etc), then editing the file within the woocommerce plugin will work, but you need to pay special attention to how this is done.
If you just edit the file, when woocommerce is updated this will be overwritten and therefore you will lose your work.
1. Make a folder – themes/yourtheme/woocommerce/myaccount/
2. locate the file plugins/woocommerce/myaccount/templates/dashboard.php
3. Place this file inside the folder you just created.
4. Edit the newly placed file dashboard.php as you wish and save.
1 2 3 4 5 6 7 8 9 10 |
<?php printf( __( 'From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">billing addresses</a>, and <a href="%3$s">edit your password and account details</a>.', 'woocommerce' ), esc_url( wc_get_endpoint_url( 'orders' ) ), esc_url( wc_get_endpoint_url( 'edit-address' ) ), esc_url( wc_get_endpoint_url( 'edit-account' ) ) ); ?> |