Skip to content

Instantly share code, notes, and snippets.

@jamiemitchell
Forked from billerickson/gist:1326002
Last active December 26, 2015 02:09
Show Gist options
  • Save jamiemitchell/7076260 to your computer and use it in GitHub Desktop.
Save jamiemitchell/7076260 to your computer and use it in GitHub Desktop.
Add Extra Code to Primary Menu in Genesis. 2 examples
<?php
/* Add Extra Code to Primary Menu
------------------------------------------------------------ */
function be_menu_extras($menu, $args) {
$extras = '<li class="right">Your extras go here</li>';
return $menu . $extras;
}
add_filter('wp_nav_menu_primary_items','be_menu_extras', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment