WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a topnav menu item that current says "My Account", I would like to change it so that it functions as:

Welcome [Logged in Username] -> My Account -> Logout

share|improve this question
What menu? What creates the menu? – s_ha_dum Nov 25 '13 at 1:09
The menu was created by appearance>menu – user43104 Nov 25 '13 at 1:31
The theme is largely responsible for how those menus work. What theme are you using? – s_ha_dum Nov 25 '13 at 1:32

you can do it with jQuery, but you'll need to find that menu item's class or ID.

Here's an example:

global $display_name;
jQuery(document).ready(function($) {
$('.your-class a').text('<?php echo $display_name;?>');
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.