Skip to content

Instantly share code, notes, and snippets.

@priyabratary
Created July 21, 2018 14:10
Show Gist options
  • Save priyabratary/57e1c1b101da74669daa9431100b0f9c to your computer and use it in GitHub Desktop.
Save priyabratary/57e1c1b101da74669daa9431100b0f9c to your computer and use it in GitHub Desktop.
WordPress menu registration
<?php wp_nav_menu( array( 'theme_location' => 'footer-menu', 'container_class' => 'footer-menu', 'items_wrap' => '<ul class="list-inline">%3$s</ul>', ) );
?>
//footer menu
function register_footer_menu() {
register_nav_menu('footer-menu',__( 'Footer Menu' ));
}
add_action( 'init', 'register_footer_menu' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment