Skip to content

Commit

Permalink
Issue #14 - add page-template-hierarchy custom template
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed May 5, 2021
1 parent 70b1655 commit 78088fd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions block-template-parts/body-only.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- wp:post-content /-->

<!-- wp:spacer {"height":50} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
35 changes: 35 additions & 0 deletions block-templates/page-template-hierarchy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- wp:html -->
<div class="WP_DEBUG">page-template-hierarchy.html</div>
<!-- /wp:html -->

<!-- wp:template-part {"slug":"header","theme":"thisis","layout":{"inherit":false,"contentSize":"100%"}} /-->

<!-- wp:group {"backgroundColor":"site-header-background","layout":{"inherit":true}} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-title {"textAlign":"left","style":{"typography":{"fontFamily":"var:preset|font-family|opensans","lineHeight":"1.5"}},"textColor":"very-light-gray","fontSize":"large"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:post-featured-image /-->

<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:template-part {"slug":"body-only","theme":"thisis","layout":{"inherit":true}} /--></div>
<!-- /wp:column -->

<!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%">
<!-- wp:template-part {"slug":"page-tree","theme":"thisis"} /-->

</div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:template-part {"slug":"footer","theme":"thisis","style":{"color":{"background":"#f7f7f7"}},"textColor":"foreground","layout":{"inherit":true}} /-->
<!-- wp:template-part {"slug":"post-footer-stuff","theme":"thisis"} /-->

0 comments on commit 78088fd

Please sign in to comment.