Created
November 8, 2016 15:33
-
-
Save erkiziltoprak/a6e4d5c53a8cbddd3668bd44f82a9e94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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