WordPress.org

Forums

Move my account menu from Toolbar to theme header (20 posts)

  1. sepidpooy
    Member
    Posted 1 year ago #

    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.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

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

  3. sepidpooy
    Member
    Posted 1 year ago #

    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

  4. sepidpooy
    Member
    Posted 1 year ago #

    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

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    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?

  6. sepidpooy
    Member
    Posted 1 year ago #

    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

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    There is no "My account" menu is WordPress.

  8. Dennis Barber
    Member
    Posted 1 year ago #

    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.

  9. sepidpooy
    Member
    Posted 1 year ago #

    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 ?

  10. sepidpooy
    Member
    Posted 1 year ago #

    There is no "My account" menu is WordPress.

    FYI:

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

  11. esmi
    Forum Moderator
    Posted 1 year ago #

    So you added this via add_menu()?

  12. sepidpooy
    Member
    Posted 1 year ago #

    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 ?

  13. esmi
    Forum Moderator
    Posted 1 year ago #

    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?

  14. sepidpooy
    Member
    Posted 1 year ago #

    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.

  15. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  16. sepidpooy
    Member
    Posted 1 year ago #

    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

  17. esmi
    Forum Moderator
    Posted 1 year ago #

    I want to hide the Toolbar (Admin Bar).

    On the front or back end? Or both? I think there are plugins that can do this part for you.

  18. sepidpooy
    Member
    Posted 1 year ago #

    On the front or back end? Or both? I think there are plugins that can do this part for you.

    Thanks for your reply. I am interested to hid the WordPress Toolbar on Front-end AND keep the fly-out menu under username somewhere else in the header.
    I know how to hide the Toolbar from Front-End. However, I don't know how to replicate the fly-out menu in my header.

  19. esmi
    Forum Moderator
    Posted 1 year ago #

    I don't know how to replicate the fly-out menu in my header.

    I'm sorry but the level of coding & CSS needed for this is really beyond the scope of the support we are able to provide in the forum. All I can suggest is that you start by looking at how the flyout has been put together from a CSS/js perspective in the back end and then replicate that within your theme (possibly via its functions.php file). Have a look at http://www.wprecipes.com/add-custom-links-to-wordpress-admin-bar for some ideas.

  20. sepidpooy
    Member
    Posted 1 year ago #

    Thanks esmi for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic