Add individual links in the WordPress toolbar

With the WordPress plugin Admin Toolbar Menus you can add your own links to the WordPress toolbar. This allows you to expand the toolbar with convenient quick links to important pages in the admin area and frontend. Shortcuts to external websites are also no problem.

The WordPress Toolbar

The WordPress toolbar is displayed at the top of the screen above the actual website and contains useful links for logged-in users, especially administrators. In the German language file of WordPress, the Toolbar is translated as toolbar.

WordPress toolbar
The WordPress toolbar / toolbar

In addition to the information about WordPress (far left), upcoming updates, comments to be activated and links to the most important admin pages are listed, e.g. for creating new content, for the customizer or widget management. The links in the toolbar are context-dependent and vary depending on the page accessed. Plugins also often add their own entries.

Your own account will be displayed on the far right, including links to log out and edit your profile. In the profile you can also deactivate the toolbar for the front end; by default this is already activated. The WordPress toolbar is always displayed in the backend.

Deactivate WordPress toolbar in the frontend

Thanks to its ubiquitous presence, the toolbar is ideal for important quick links.

Admin Toolbar Menus Plugin

With Admin Toolbar Menus you can add such individual links to the WordPress Toolbar yourself - quickly and easily with a normal WordPress menu. You can download the plugin for free from the WordPress plugin directory.

Seamlessly adds 3 new menu locations to the admin toolbar.

From: Benbodhi

( 16 )
Last updated: 1 month ago
1,000+ active installations
Compatible up to: 5.7

The plugin has not been updated for a long time, but works fine with WordPress 4.9.5. Nothing has changed on the toolbar, which means that no update is required.

Extend the WordPress toolbar with your own links

To add your own links in the WordPress toolbar, you can create a new WordPress menu under Design → Menus and assign one of the menu positions for the toolbar.

By assigning the menu to the Toolbar Menu (Main) position , the links are displayed directly in the toolbar. Nested menus are also no problem, the sub-links are then displayed as a drop-down menu in the toolbar.

In total, the plugin provides three new menu positions for the toolbar:

The menu item Site Name shows the menu links in the drop-down menu of the website title. Nested links are not a problem here either.

The third position My Account works in the same way as Site Name, only the links are inserted on the far right in the user's drop-down menu.

Limitations of the plugin

The plugin is kept very simple and apart from the menus it works without any options of its own.

I missed a possibility to influence the order of the links in the toolbar. In addition to the WordPress core, plugins often add their own links. The plugin does not allow you to set a priority for your own WordPress menu, which means that the links are often displayed between the other links, not at the end.

In addition, the individual toolbar menus are always displayed in the tool list, ie the links are visible to all logged-in users. Another useful function would therefore be to be able to restrict the visibility of the links only for administrators or certain user roles.

Conclusion

If you can do without features such as menu order and display for certain user roles, Admin Toolbar Menus is an ideal plugin to quickly and easily add your own links to the WordPress toolbar.

In another tutorial I would like to shortly show you how you can extend the WordPress toolbar with your own code snippets. This of course means that more flexible options are available.