Skip to content

Commit

Permalink
UCSC-135 Add maxNestingLevel for navigation block
Browse files Browse the repository at this point in the history
  • Loading branch information
MlKilderkin committed Sep 12, 2023
1 parent a739d13 commit 42255f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* @since UCSC 1.0.0
*/

use Image_Sizes;

if ( ! function_exists( 'ucsc_setup' ) ) :

/**
Expand Down
2 changes: 1 addition & 1 deletion patterns/sidebar-with-navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h3 class="wp-block-heading has-base-font-size"><strong>Navigation header</strong></h3>
<!-- /wp:heading -->

<!-- wp:navigation {"ref":2910,"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} /--></div>
<!-- wp:navigation { "maxNestingLevel": 1,"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} /--></div>
<!-- /wp:column -->

<!-- wp:column {"width":"66.66%"} -->
Expand Down
3 changes: 2 additions & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@
}
},
"core/navigation": {
"maxNestingLevel": 1,
"typography": {
"customFontSize": false
},
Expand Down Expand Up @@ -541,4 +542,4 @@
}
},
"customTemplates": []
}
}

0 comments on commit 42255f8

Please sign in to comment.