Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function custom_nav_item($items) {
$ekstra_item = '<li class="menu-item"><a href="#" class="search-toggle"><span class="dashicons dashicons-search"></span></a></li> ';
$items .= $ekstra_item;
return $items;
add_filter( 'wp_nav_menu_menu-name_items', 'custom_nav_item' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.