Support » Plugin: Genesis Subpages as Secondary Menu » exclude sub-nav from specific pages

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Something like this should work in functions.php:

    if( is_page( 'about' ) )
    add_filter( 'has_nav_menu', 'ea_remove_submenu', 99, 2 );
    
    function ea_remove_submenu( $has_menu, $location ) {
    	if( 'secondary' == $location )
    		$has_menu = false;
    	return $has_menu;
    }
    
    • This reply was modified 2 years, 12 months ago by Bill Erickson.

    thanks Bill

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘exclude sub-nav from specific pages’ is closed to new replies.