Delegate links in wp_nav_menu
-
Hey, so my problem is:
I’ve injected all my pages into page.php in order to create dynamic scrollable static page with all pages content in one place. Therefore menu on the top should link to particular span id as delegate like https://domain.com/#page_name.
How can I change this code to obtain such feature?
<nav class=”navbar-collapse bs-navbar-collapse collapse” role=”navigation” id=”site-navigation”>
<?php _e( ‘Skip to content’, ‘zerif-lite’ ); ?>
<?php wp_nav_menu( array(
‘theme_location’ => ‘primary’,
‘container’ => false,
‘menu_class’ => ‘nav navbar-nav navbar-right responsive-nav main-nav-list’,
‘fallback_cb’ => ‘zerif_wp_page_menu’)); ?>
</nav></div>
- The topic ‘Delegate links in wp_nav_menu’ is closed to new replies.