Genesis Admin Bar Plus Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
This plugin adds resources links related to the Genesis Framework to the admin bar.
These resources include direct links to StudioPress support forums for each theme, quick access to Genesis Theme and SEO settings pages, quick access to Genesis-related plugin settings pages (for those that are active), and links to useful tutorial pages for how to get the most out of Genesis.
The plugin is built with theme and plugin developers in mind, as they can add support for their product with only a few lines of code, giving their users instant access to the right support board, a link to their website etc.
- Adds support for menu item positioning, so custom entries can be added anywhere, and not just as the final items.
- Easy addition of Support board links via single lines in theme
functions.php
.
This plugin is conceptual fork of the Genesis Admin Bar Addition plugin, re-written from scratch, adding new features.
Please report issues at https://github.com/GaryJones/Genesis-Admin-Bar-Plus/issues and not the WP Forums.
Add Custom Items
Here’s an example which removes the StudioPress menu (you only need to remove the parent item to remove all of the child items too), moves the Support menu item to the bottom of the submenu and adds some custom menu items in:
add_action( 'gabp_menu_items', 'child_gabp_menu_items', 10, 3 );
/**
* Amend the menu items in the Genesis Admin Bar Plus plugin.
*
* @param Genesis_Admin_Bar_Plus_Menu $menu
* @param string $prefix
* @param string $genesis
*/
function child_gabp_menu_items( $menu, $prefix, $genesis ) {
$garyjones = $prefix . 'gary-jones';
// Remove StudioPress item
$menu->remove_item('studiopress');
// Add Gary Jones item
$menu->add_item( 'gary-jones', array(
'parent' => $genesis,
'title' => 'Gary Jones',
'href' => 'http://garyjones.co.uk/',
'position' => 30
) );
// Add Gary Jones submenu items
$menu->add_item( 'code-gary-jones', array(
'parent' => $garyjones,
'title' => 'Code Gallery',
'href' => 'http://code.garyjones.co.uk/',
'position' => 10
) );
$menu->add_item( 'garyj', array(
'parent' => $garyjones,
'title' => 'GaryJ',
'href' => 'http://twitter.com/GaryJ',
'position' => 20
) );
// Amend position of Support menu item - child items will move correctly too
// as of v1.1
$menu->edit_item( 'support', array(
'position' => 50
) );
}<h3>Add Support Boards</h3>
To a add a reference to a support board (perhaps for the child theme the active theme is based on, or a plugin the site uses, etc), you can add something like one of the following to the child theme functions.php
file.
add_theme_support(‘gabp-support-genesis’); // Adds direct link to Genesis support board
add_theme_support(‘gabp-support-pretty-young-thing’); // Adds link to Pretty Young Thing child theme support board
add_theme_support(‘gabp-support-prose’); // Adds link to Prose child theme support board
add_theme_support(‘gabp-support-focus’); // Adds link to Focus child theme support board
add_theme_support(‘gabp-support-translations’); // Adds direct link to Genesis Translations support board
add_theme_support(‘gabp-support-plugins’); // Adds direct link to StudioPress Plugins support board
add_theme_support(‘gabp-support-genesisconnect’); // Adds direct link to GenesisConnect support board
For child themes, the bit after the gabp-support-
string must be the theme name, lowercase, with spaces replaced with hyphens.
Translations
- Deutsch: http://deckerweb.de/material/sprachdateien/genesis-plugins/#genesis-admin-bar-plus
- Italiano: http://gidibao.net/
Screenshots
-
Support menu expanded, to show 3 optional items added via theme
functions.php
usingadd_theme_support()
-
Codex menu expanded
-
StudioPress menu expanded, along with FAQ submenu, and with debug mode enabled to show calculated menu positions
-
Settings menu expanded, showing support for direct link to settings pages of several Genesis-related plugins
-
Showing the StudioPress menu item removed, Support menu item moved position and new custom menu items added