WordPress.org

Support

Support » Themes and Templates » Move my account menu from Toolbar to theme header

Move my account menu from Toolbar to theme header

  • Hi,

    Is it possible to move the ‘my account’ menu from very right side of wp top toolbar to somewhere else ?
    I would like to hide the top toolbar and keep the my account menu somewhere else in my theme header. In fact, I am interested to keep the my account menu content and functionality as well. For example, the menu opens automatically now on mouse hover which is a nice functionality.

Viewing 15 replies - 1 through 15 (of 19 total)
  • esmi

    @esmi

    Forum Moderator

    There is no “My account” menu in WordPress by default. Is this part of your theme or is it being added by a plugin?

    I am talking about the menu on the top Toolbar in the very right hand side. Here is a screen shot of a sample Toolbar and I am talking about “Howday, wpace” menu in this example:

    https://codex.wordpress.org/images/e/e4/toolbar-MP6.png

    Let me put it in the other way:

    Is there any plug-in which can generate almost the same drop-down menu ?

    If yes, I can hide the top Toolbar and use the plug-in to make such a menu in the theme header.

    Thanks

    esmi

    @esmi

    Forum Moderator

    I am talking about the menu on the top Toolbar in the very right hand side.

    There isn’t a “My account” item in that flyout menu within a single, self-hosted, WordPress site. Is this perhaps part of a multisite?

    Is this perhaps part of a multisite?

    No, I am talking about single self-hosted wordpress. I am not interested on any single item within that flayout menu. I would like to move the WHOLE menu from Toolbar to Header. Just to make it more clear, here is another screenshot of the menu:
    http://i58.tinypic.com/ekqkg8.png

    esmi

    @esmi

    Forum Moderator

    There is no “My account” menu is WordPress.

    Have you tried adding the ‘Meta’ widget to your sidebar? It is found in the admin panel under Widgets. Just drag and drop it into your sidebar.

    Have you tried adding the ‘Meta’ widget to your sidebar? It is found in the admin panel under Widgets. Just drag and drop it into your sidebar.

    Thanks for your reply. Meta widget does not include everything that is available in the my-account flyout menu. Only log-out link is in common. Is there any other plug-in or tricks ?

    There is no “My account” menu is WordPress.

    FYI:

    https://codex.wordpress.org/Class_Reference/WP_Admin_Bar/add_menu

    esmi

    @esmi

    Forum Moderator

    So you added this via add_menu()?

    So you added this via add_menu()?

    You keep saying there is no my-account menu in wordpress even when I send some screen shots from that menu. You might not call it my-account menu. However, the wordpress source code name it in this way and used add_menu() to add it in the Toolbar. Here is the source code:

    https://github.com/WordPress/WordPress/blob/33c41db77a12bcd36a2e5861393fc890b3918e8e/wp-includes/admin-bar.php#L213

    I want to move this flyout menu from Toolbar (formerly Admin Bar) to my theme header. Do you have any idea how can I do this ? Is there any plug-in around which can help to do replicate similar Flyout menu ?

    esmi

    @esmi

    Forum Moderator

    There is no menu item called “My account” in WordPress. Are you referring to the flyout menu under your name after you have logged in?

    There is no menu item called “My account” in WordPress. Are you referring to the flyout menu under your name after you have logged in?

    Exactly.

    esmi

    @esmi

    Forum Moderator

    Why do you need to move this? I suppose you could hide the flyout if you created a plugin that added a bit of custom CSS.

    Why do you need to move this? I suppose you could hide the flyout if you created a plugin that added a bit of custom CSS.

    I want to hide the Toolbar (Admin Bar). However, this fly-out menu is very useful and I want to keep it. Therefore, I am looking for some way to move/replicate the same fly-out menu (with the same content) somewhere in my theme header and then hide the Toolbar(Admin Bar).

    Are you aware of any plug-in which can replicate this fly-out menu somewhere else ?

    Thanks

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Move my account menu from Toolbar to theme header’ is closed to new replies.
Skip to toolbar