Compare commits

...

4 Commits

Author SHA1 Message Date
d9d8ee7d12 fix typo
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-12 14:14:55 +05:00
47d23c0be8 register pattern category with correct slug
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-12 14:14:37 +05:00
79a4c6c31f add full page pattern category
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-12 14:13:25 +05:00
a4ae66abf5 re-add theme.json schema
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-12 14:11:12 +05:00
2 changed files with 17 additions and 4 deletions

View File

@ -67,3 +67,16 @@ function lex_scotland_block_styles() {
// enable customizer
add_action( 'customize_register', '__return_true' );
// add full page pattern category
function lexscotland_pattern_categories() {
register_block_pattern_category(
'lexscotland_page',
array(
'label' => _x( 'Pages', 'Block pattern category', 'lexscotland' ),
'description' => __( 'A collection of full page layouts.', 'lexscotland' ),
)
);
}
add_action( 'init', 'lexscotland_pattern_categories' );

View File

@ -1,4 +1,6 @@
{
"version": 3,
"$schema": "https://schemas.wp.org/trunk/theme.json",
"customTemplates": [
{
"name": "page-brochure",
@ -459,7 +461,5 @@
"fontWeight": "400",
"lineHeight": "1.6"
}
},
"version": 2,
"$schema": "https://schemas.wp.org/wp/6.5/theme.json"
}
}