I’m working on a member site in X Theme using the Renew stack. I need to add a dynamic “Welcome Username” item into the topbar, but I also have several other links in the topbar as well. (See Screenshot)
I need to insert the following PHP code into the topbar:
<?php $user_info = get_userdata(1);
echo ‘WELCOME ‘ . $user_info->first_name . “\n”;
?>
I have a child theme setup. I just need to know where to place this code and in what file. I also need to know how to make it play well with the other items I already have functioning in the topbar.
Thanks!