I am trying to get this menu to work in this Razor theme but it’s not working Like it should.
I added this code to functions.php:
#----------------------------------------------------------------
# Add New Footer Menu
#----------------------------------------------------------------
add_action( 'init', 'register_footer_menu' );
function register_footer_menu() {
register_nav_menu( 'custom-footer-menu', __( 'Custom Footer Menu' ) );
}
This created a new menu I could add items to on the backend.
However when I try to display it in design-footer.php using this code:
wp_nav_menu( array( 'theme_location' => 'custom-footer-menu' ) );
It only wants to display the main menu. I have tried changing the name and checked my code several times. Everything looks good. If you use a sidebar widget and select the custom footer menu, the sidebar will only output the main menu on the front end.
I think this is a bug within the Razor theme.