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

  • 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;?>');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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