From 5298c9c845c8859a0c8199d933853b325f06a440 Mon Sep 17 00:00:00 2001 From: dufresnesteven Date: Fri, 10 Jun 2022 10:55:17 +0900 Subject: [PATCH] Simply menu display. --- source/wp-content/themes/wporg-developer/header.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/wp-content/themes/wporg-developer/header.php b/source/wp-content/themes/wporg-developer/header.php index 9d299072d..aefb72444 100644 --- a/source/wp-content/themes/wporg-developer/header.php +++ b/source/wp-content/themes/wporg-developer/header.php @@ -14,18 +14,13 @@ // When to show the masthead $show_masthead = is_front_page() || is_page( 'reference' ); -$active_menu = is_post_type_archive( 'command' ) || is_singular( 'command' ) ? 'devhub-cli-menu' : 'devhub-menu'; - -// When the search is in the subheading bar -$has_menu_items = $show_search && ! $show_masthead || has_nav_menu( $active_menu ); - ?>