I am migrating a site over to GP. On the current site I have a little condition checking which page the user is on and displaying a menu for that page.
Homepage has one menu, all the other pages have a different one.
This is the code I’m currently using:
<?php if(is_front_page()) { ?>
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
<?php } else { ?>
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'menu' => 'main') ); ?>
<?php } ?>
How can this be done with elements?
Thanks,
Dan