// In functions.php you can require_once the wp_bootstrap_navwalker file. (https://github.com/twittem/wp-bootstrap-navwalker)
<?php
wp_nav_menu( array(
'menu' => 'primary',
'theme_location' => 'headermenu',
'depth' => 1,
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'bs-example-navbar-collapse-1',
'menu_class' => 'nav navbar-nav navbar-right',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker())
);
?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.