Skip to content

Commit

Permalink
Issue #44 - Update single and singular. Add single-full custom templa…
Browse files Browse the repository at this point in the history
…te, defined in experimental-theme.json
  • Loading branch information
bobbingwide committed Apr 12, 2021
1 parent e60a1a2 commit 4b2cd13
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
22 changes: 22 additions & 0 deletions block-templates/single-full.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- wp:html -->
<div class="WP_DEBUG">single-full.html custom template </div>
<!-- /wp:html -->

<!-- wp:template-part {"slug":"header","theme":"fizzie", "align":"full","tagName":"header" } /-->

<!-- wp:template-part {"slug":"breadcrumbs","theme":"fizzie", "className": "breadcrumbs", "layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"post-content","theme":"fizzie", "className": "post-content", "align":"full","layout":{"inherit":true} } /-->

<!-- wp:template-part {"slug":"metadates", "theme":"fizzie", "className": "metadates","layout":{"inherit":true} } /-->

<!-- wp:template-part {"slug":"information","theme":"fizzie", "className": "information", "layout":{"inherit":true} } /-->

<!-- wp:template-part {"slug":"search","theme":"fizzie","layout":{"inherit":true} } /-->

<!-- wp:template-part {"slug":"page-footer","theme":"fizzie"} /-->

<!-- wp:template-part {"slug":"footer","theme":"fizzie"} /-->

<!-- wp:template-part {"slug":"footer-menu","theme":"fizzie", "className":"footer-menu"} /-->

2 changes: 1 addition & 1 deletion block-templates/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<!-- wp:template-part {"slug":"breadcrumbs","theme":"fizzie", "className": "breadcrumbs", "layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"post-content","theme":"fizzie", "className": "post-content", "align":"wide","layout":{"inherit":true} } /-->
<!-- wp:template-part {"slug":"post-content","theme":"fizzie", "className": "post-content","layout":{"inherit":true} } /-->

<!-- wp:template-part {"slug":"metadates", "theme":"fizzie", "className": "metadates","layout":{"inherit":true} } /-->

Expand Down
14 changes: 8 additions & 6 deletions block-templates/singular.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<!-- wp:html -->
<div class="WP_DEBUG">singular.html</div>
<!-- /wp:html -->

<!-- wp:template-part {"slug":"header","theme":"fizzie"} /-->
<!-- wp:template-part {"slug":"header","theme":"fizzie", "align":"full","tagName":"header" } /-->

<!-- wp:template-part {"slug":"breadcrumbs","theme":"fizzie", "className": "breadcrumbs"} /-->
<!-- wp:template-part {"slug":"breadcrumbs","theme":"fizzie", "className": "breadcrumbs","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"page-content","theme":"fizzie"} /-->
<!-- wp:template-part {"slug":"page-content","theme":"fizzie","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"metadates", "theme":"fizzie", "className": "metadates" } /-->
<!-- wp:template-part {"slug":"metadates", "theme":"fizzie", "className": "metadates","layout":{"inherit":true} } /-->

<!-- wp:template-part {"slug":"information","theme":"fizzie", "className": "information"} /-->
<!-- wp:template-part {"slug":"information","theme":"fizzie", "className": "information","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"search","theme":"fizzie"} /-->
<!-- wp:template-part {"slug":"search","theme":"fizzie","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"page-footer","theme":"fizzie"} /-->

Expand Down
15 changes: 14 additions & 1 deletion experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,18 @@
"typography": {}
}
}
}
},
"customTemplates": [
{
"name": "single-full",
"title": "Full width stuff",
"postTypes": [
"page",
"post",
"block",
"block_example"
]
}
]

}

0 comments on commit 4b2cd13

Please sign in to comment.