Add Header & Footer-only template.
This commit is contained in:
parent
bf50f65a50
commit
4a9b42faff
2 changed files with 18 additions and 0 deletions
10
blockbase/block-templates/header-footer-only.html
Normal file
10
blockbase/block-templates/header-footer-only.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!-- wp:template-part {"slug":"header","tagName":"header","layout":{"inherit":true}} /-->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group post-content">
|
||||
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer","layout":{"inherit":true}} /-->
|
|
@ -18,6 +18,14 @@
|
|||
"page",
|
||||
"post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "header-footer-only",
|
||||
"title": "Header and Footer Only",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
|
|
Loading…
Reference in a new issue