diff --git a/source/wp-content/themes/wporg-developer/header.php b/source/wp-content/themes/wporg-developer/header.php index 2dfec1192..da59fd934 100644 --- a/source/wp-content/themes/wporg-developer/header.php +++ b/source/wp-content/themes/wporg-developer/header.php @@ -9,13 +9,16 @@ echo do_blocks( '' ); +$show_search = DevHub\should_show_search_bar(); + ?> @@ -41,16 +50,4 @@ - - - -
diff --git a/source/wp-content/themes/wporg-developer/inc/breadcrumb-trail.php b/source/wp-content/themes/wporg-developer/inc/breadcrumb-trail.php index 3229fb2bb..1713a936c 100644 --- a/source/wp-content/themes/wporg-developer/inc/breadcrumb-trail.php +++ b/source/wp-content/themes/wporg-developer/inc/breadcrumb-trail.php @@ -89,7 +89,7 @@ public function __construct( $args = array() ) { 'network' => false, //'show_edit_link' => false, 'show_title' => true, - 'show_browse' => true, + 'show_browse' => false, 'echo' => true, /* Post taxonomy (examples follow). */ diff --git a/source/wp-content/themes/wporg-developer/scss/main.scss b/source/wp-content/themes/wporg-developer/scss/main.scss index 47eb4b905..12c9b78d2 100644 --- a/source/wp-content/themes/wporg-developer/scss/main.scss +++ b/source/wp-content/themes/wporg-developer/scss/main.scss @@ -1802,6 +1802,12 @@ max-width: 960px; padding: 0 10px; position: relative; + + &.has-search-form { + display: flex; + justify-content: space-between; + align-items: center; + } } .site-title { diff --git a/source/wp-content/themes/wporg-developer/searchform.php b/source/wp-content/themes/wporg-developer/searchform.php index 5bd595eb2..4619519f0 100644 --- a/source/wp-content/themes/wporg-developer/searchform.php +++ b/source/wp-content/themes/wporg-developer/searchform.php @@ -4,8 +4,15 @@ * * @package wporg-developer */ + +$showFilters = true; + +if(array_key_exists('showFilters', $args)){ + $showFilters = $args['showFilters']; + } + ?> -
+
is_handbook; @@ -22,7 +29,7 @@ - +
diff --git a/source/wp-content/themes/wporg-developer/stylesheets/main.css b/source/wp-content/themes/wporg-developer/stylesheets/main.css index 36724deea..beb007e0c 100644 --- a/source/wp-content/themes/wporg-developer/stylesheets/main.css +++ b/source/wp-content/themes/wporg-developer/stylesheets/main.css @@ -2469,6 +2469,12 @@ img { position: relative; } +.site-branding.has-search-form { + display: flex; + justify-content: space-between; + align-items: center; +} + .site-title { line-height: 1; margin: 0;