diff --git a/source/wp-content/themes/wporg-documentation-2022/parts/header-home.html b/source/wp-content/themes/wporg-documentation-2022/parts/header-home.html index f1e4996..dbfa34d 100644 --- a/source/wp-content/themes/wporg-documentation-2022/parts/header-home.html +++ b/source/wp-content/themes/wporg-documentation-2022/parts/header-home.html @@ -2,9 +2,7 @@ - - - + diff --git a/source/wp-content/themes/wporg-documentation-2022/parts/header.html b/source/wp-content/themes/wporg-documentation-2022/parts/header.html index efe0cc6..acb9ad7 100644 --- a/source/wp-content/themes/wporg-documentation-2022/parts/header.html +++ b/source/wp-content/themes/wporg-documentation-2022/parts/header.html @@ -2,7 +2,15 @@ - + +
+ + + + + +
+ diff --git a/source/wp-content/themes/wporg-documentation-2022/src/style/style.scss b/source/wp-content/themes/wporg-documentation-2022/src/style/style.scss index 8bdf33a..f0846fe 100644 --- a/source/wp-content/themes/wporg-documentation-2022/src/style/style.scss +++ b/source/wp-content/themes/wporg-documentation-2022/src/style/style.scss @@ -17,6 +17,16 @@ p.has-background { padding: var(--wp--preset--spacing--20); } +/* Both blocks are in the local header, but only one should be shown at any given time. */ +body.archive .wp-block-wporg-local-navigation-bar .wp-block-post-title { + display: none; +} + +body.single .wp-block-wporg-local-navigation-bar .wp-block-query-title, +body.page .wp-block-wporg-local-navigation-bar .wp-block-query-title { + display: none; +} + // Scale down very large headings so they fit on mid-sized screens. .wp-block-heading.has-heading-cta-font-size { // Scales from 54px at 400 wide to 120px at 900 wide.