Comments 2Gabriel started the conversationFebruary 14, 2017 at 2:35pmHello,Can you tell me how can I add the name of the logged user in the header.. Just to the right side ot the Wishlist link.Thanks 568Stormit repliedFebruary 14, 2017 at 5:08pmHi Gabriel,You need to edit the header template file which you are using (header-v1.php, header-v2.php, ....). You can copy it to the child theme and edit it.You add the code below <?php if( is_user_logged_in() ): ?> <div class="user-info"> <?php $current_user = wp_get_current_user(); echo $current_user->display_name; ?> </div> <?php endif; ?> as my attached file.Best regards, 2Gabriel repliedFebruary 14, 2017 at 6:45pmPerfectttt.. Thanks a lot! Sign in to reply ...
Hello,
Can you tell me how can I add the name of the logged user in the header.. Just to the right side ot the Wishlist link.
Thanks
Hi Gabriel,
You need to edit the header template file which you are using (header-v1.php, header-v2.php, ....). You can copy it to the child theme and edit it.
You add the code below
as my attached file.
Best regards,
Perfectttt.. Thanks a lot!