Skip to content

Commit

Permalink
Theme: Remove header/footer template parts
Browse files Browse the repository at this point in the history
Because they only contain a single element, they're no longer useful. Having them as a template part adds extra & unneccessary `<header>` / `<footer>` tags to the page.

See #6
  • Loading branch information
iandunn committed Sep 1, 2021
1 parent 2d83fbf commit a631775
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:wporg/global-header /-->

<!-- wp:group {"layout":{"inherit":true},"tagName":"main"} -->
<main class="wp-block-group">
Expand All @@ -15,4 +15,4 @@ <h1 class="has-large-font-size">Oops! That page can’t be found.</h1>
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer","layout":{"inherit":true},"className":"site-footer-container"} /-->
<!-- wp:wporg/global-footer /-->
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:post-content {"layout":{"inherit":true}} /-->
<!-- wp:post-content {"layout":{"inherit":true}} /-->
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:wporg/global-header /-->

<!-- wp:group {"tagName":"main"} -->
<main class="wp-block-group">
Expand All @@ -7,4 +7,4 @@
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer","layout":{"inherit":true},"className":"site-footer-container"} /-->
<!-- wp:wporg/global-footer /-->
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:wporg/global-header /-->

<!-- wp:query {"tagName":"main","queryId":1,"query":{"perPage":10,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":""}} -->
<main class="wp-block-query">
Expand Down Expand Up @@ -28,4 +28,4 @@
</main>
<!-- /wp:query -->

<!-- wp:template-part {"slug":"footer","tagName":"footer","layout":{"inherit":true},"className":"site-footer-container"} /-->
<!-- wp:wporg/global-footer /-->
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:wporg/global-header /-->

<!-- wp:group {"layout":{"inherit":true},"tagName":"main"} -->
<main class="wp-block-group">
Expand All @@ -17,4 +17,4 @@
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer","layout":{"inherit":true},"className":"site-footer-container"} /-->
<!-- wp:wporg/global-footer /-->
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- wp:template-part {"slug":"header","theme":"wporg-news-2021","tagName":"header","className":"site-header-container"} /-->
<!-- wp:wporg/global-header /-->

<!-- wp:template-part {"slug":"content-single","theme":"wporg-news-2021","tagName":"main","className":"site-content-container content-single"} /-->

<!-- wp:template-part {"slug":"post-navigation","theme":"wporg-news-2021","className":"post-navigation-container","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"footer","theme":"wporg-news-2021","tagName":"footer","className":"site-footer-container"} /-->
<!-- wp:wporg/global-footer /-->

0 comments on commit a631775

Please sign in to comment.