hammada1980
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Themes and Templates
In reply to: [OceanWP] User & logout in woocommerce My account pageFinally!!
thanks man it works
I was this close to stat palying with
/oceanwp/inc/woocommerce/woocommerce-config.php code 🙂/** * Add wrap and user info to the account navigation. * * @since 1.0.0 */ public static function oceanwp_before_account_navigation() { // Name to display $current_user = wp_get_current_user(); if ( $current_user->display_name ) { $name = $current_user->display_name; } else { $name = esc_html__( 'Welcome!', 'oceanwp' ); } $name = apply_filters( 'ocean_user_profile_name_text', $name ); echo '<div class="woocommerce-MyAccount-tabs clr">'; echo '<div class="oceanwp-user-profile clr">'; echo '<div class="image">' . get_avatar( $current_user->user_email, 128 ) . '</div>'; echo '<div class="user-info">'; echo '<p class="name">' . esc_attr( $name ) . '</p>'; echo '<a class="logout" href="' . esc_url( wp_logout_url( get_permalink() ) ) . '">' . esc_html__( 'Logout', 'oceanwp' ) . '</a>'; echo '</div>'; echo '</div>'; }I know I can fix it form here but I prefer not to touch a .PHP file
thanks again man I appreciate it- This reply was modified 4 years, 7 months ago by hammada1980.
Viewing 1 replies (of 1 total)