create no-title page template
This commit is contained in:
parent
ef9cdf7439
commit
71ed072f7c
13
templates/page-no-title.html
Normal file
13
templates/page-no-title.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignwide">
|
||||
<!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /-->
|
||||
|
||||
<!-- wp:post-content {"align":"wide","backgroundColor":"base-2"} /-->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","theme":"cmt-engineering-theme","tagName":"footer","area":"footer","align":"wide"} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
@ -1,13 +1,20 @@
|
||||
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignwide">
|
||||
<!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /-->
|
||||
<!-- wp:template-part {"slug":"header","theme":"cmt-engineering-theme","tagName":"header","area":"header"} /-->
|
||||
|
||||
<!-- wp:post-content {"align":"wide","backgroundColor":"base-2"} /-->
|
||||
<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|20","left":"var:preset|spacing|20"}}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group"
|
||||
style="padding-right:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)">
|
||||
<!-- wp:spacer {"height":"14px"} -->
|
||||
<div style="height:14px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","theme":"cmt-engineering-theme","tagName":"footer","area":"footer","align":"wide"} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- wp:post-title {"style":{"typography":{"fontSize":"30px","fontStyle":"normal","fontWeight":"400"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary"} /-->
|
||||
|
||||
<!-- wp:post-content /-->
|
||||
|
||||
<!-- wp:spacer {"height":"42px"} -->
|
||||
<div style="height:42px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","theme":"cmt-engineering-theme","tagName":"footer","area":"footer"} /-->
|
@ -136,6 +136,13 @@
|
||||
"fontFamily": "var(--wp--preset--font-family--lato)"
|
||||
}
|
||||
},
|
||||
"customTemplates": [
|
||||
{
|
||||
"name": "page-no-title",
|
||||
"postTypes": ["page"],
|
||||
"title": "Page No Title"
|
||||
}
|
||||
],
|
||||
"version": 2,
|
||||
"$schema": "https://schemas.wp.org/wp/6.5/theme.json"
|
||||
}
|
Loading…
Reference in New Issue
Block a user