I would like to add a button to the WP admin toolbar, similar to the Notifications feature released in Jetpack 1.9.1 (I think it was). The notifications icon is displayed beside the account button, to the right.
I am only looking to display a form in the dropdown, for clients to contact me if they have questions – using AJAX for sending. This question only concerns the toolbar and getting the button and submenu dropdown in place.
UPDATE: Here is a screenshot (as requested): I just want to replace this with a form and no additional sublevel menus
The following is extracted from Jetpack and enables an identical menu item in the admin bar.
Note that:
wp_enqueue_style
andwp_enqueue_script
.add_menu
instead ofadd_node
(the preferred method according to the Codex)meta->html
attribute with aniframe