Skip to content

Instantly share code, notes, and snippets.

@webdev1001
Forked from lmartins/functions.php
Last active August 29, 2015 14:11
Show Gist options
  • Save webdev1001/55147ce32f73d830637d to your computer and use it in GitHub Desktop.
Save webdev1001/55147ce32f73d830637d to your computer and use it in GitHub Desktop.
add_filter( 'wp_nav_menu_items', 'your_custom_menu_item', 10, 2 );
function your_custom_menu_item ( $items, $args ) {
if ($args->theme_location == 'header') {
$items .= '<li class="menu-item"><a id="openOptionsSidebar" class="shifter-handle">More</a></li>';
}
return $items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment