March 2, 2015 at 8:56 pm
#22664
astrid
Participant
Thanks. Is this the code I shall move:
<?php
if ( has_nav_menu( ‘primary’ ) ) {
$args = array(
‘theme_location’ => ‘primary’,
‘container’ => ”,
‘items_wrap’ => ‘<ul class=”root”>%3$s’
);
echo ‘<nav id=”access” class=”clearfix”>’;
wp_nav_menu( $args );
echo ‘</nav><!– #access –>’;
}
else {
echo ‘<nav id=”access” class=”clearfix”>’;
wp_page_menu( array( ‘menu_class’ => ‘root’ ) );
echo ‘</nav><!– #access –>’;
}
?>