This tutorial provides the steps to output sub-menu items in any theme based on Genesis Framework.
In a few themes like Genesis Sample have secondary menu in footer and doesn’t output sub-menu by default. We can change the depth value to output sub menu in frontend.
Open functions.php and find a similar function
add_filter( 'wp_nav_menu_args', 'genesis_sample_secondary_menu_args' ); /** * Reduces secondary navigation menu to one level depth. * * @since 2.2.3 * * @param array $args Original menu options. * @return array Menu options with depth set to 1. */ function genesis_sample_secondary_menu_args( $args ) { if ( 'secondary' !== $args['theme_location'] ) { return $args; } $args['depth'] = 1; return $args; }
Here, the main thing is to find menu depth
$args['depth'] = 1;
change it to higher depend on how depth of sub menu you want. Recommended is 2 or 3.
$args['depth'] = 2;
It will work now.