Skip to content

Commit

Permalink
Merge pull request #83 from Codeinwp/fix/issue-79
Browse files Browse the repository at this point in the history
feat: page template with only header & footer
  • Loading branch information
HardeepAsrani authored Nov 28, 2023
2 parents 7a94e5d + 649d2f4 commit 68b2262
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions templates/template-plain.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- wp:template-part {"slug":"header","theme":"raft","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"0","bottom":"0","left":"0","right":"0"},"blockGap":"0"}},"layout":{"inherit":false}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:post-content {"layout":{"type":"constrained","contentSize":"100%"}} /--></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"raft","tagName":"footer"} /-->
7 changes: 6 additions & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,10 @@
"name": "template-blank",
"title": "Blank Page - Only Content"
},
{
"name": "template-plain",
"title": "Page with Header & Footer"
},
{
"name": "single-product",
"title": "WooCommerce Single Product"
Expand All @@ -528,7 +532,8 @@
"name": "header",
"title": "Header",
"area": "header"
},{
},
{
"name": "header-centered",
"title": "Header Centered",
"area": "header"
Expand Down

0 comments on commit 68b2262

Please sign in to comment.