Instantly share code, notes, and snippets.
manters2000/menu
forked from ikoner/menu
Last active Sep 17, 2015
Forked Gist
functions.php | |
// register wp_nav_menu | |
add_action( 'init', 'register_my_menus' ); | |
function register_my_menus() { | |
register_nav_menus( array( | |
'topMenu' => __( 'topMenu', 'smsApp' ) | |
) | |
); | |
} | |
<?php wp_nav_menu( array( | |
'container' => false, | |
'theme_location' => 'topMenu', | |
'items_wrap' => '<ul class="nav">%3$s</ul>' | |
) ); ?> | |
admin -> Appearance -> Menus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment