Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
Fix error: Template part has been deleted or is unavailable in Erma, …
Browse files Browse the repository at this point in the history
…Poesis, and Meraki (#7348)

* Remove theme attribute from erma theme

* Remove theme attribute from poesis theme

* Add post meta template part in theme.json
  • Loading branch information
miksansegundo authored Sep 7, 2023
1 parent b5faae3 commit 171b46a
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 14 deletions.
4 changes: 4 additions & 0 deletions blockbase/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
{
"name": "footer",
"area": "footer"
},
{
"name": "post-meta-icons",
"area": "uncategorized"
}
],
"customTemplates": [
Expand Down
4 changes: 2 additions & 2 deletions erma/templates/archive.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"erma","tagName":"header"} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)"><!-- wp:query {"queryId":31,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main","displayLayout":{"type":"flex","columns":5},"align":"wide","layout":{"type":"default"}} -->
Expand All @@ -24,4 +24,4 @@
<!-- /wp:query --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"erma","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
4 changes: 2 additions & 2 deletions erma/templates/home.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"erma","tagName":"header"} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)"><!-- wp:columns {"align":"wide"} -->
Expand Down Expand Up @@ -152,4 +152,4 @@
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"erma","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
4 changes: 2 additions & 2 deletions erma/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"erma","tagName":"header"} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)"><!-- wp:query {"queryId":15,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]},"tagName":"main","displayLayout":{"type":"flex","columns":5},"align":"wide","layout":{"type":"default"}} -->
Expand All @@ -22,4 +22,4 @@
<!-- /wp:query-pagination --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"erma","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
4 changes: 2 additions & 2 deletions erma/templates/page.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"erma","tagName":"header"} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|80","left":"var:preset|spacing|80"}}}} -->
Expand All @@ -14,4 +14,4 @@
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"erma","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
4 changes: 2 additions & 2 deletions erma/templates/search.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"erma","tagName":"header"} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)"><!-- wp:query {"queryId":31,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main","displayLayout":{"type":"flex","columns":5},"align":"wide","layout":{"type":"default"}} -->
Expand Down Expand Up @@ -34,4 +34,4 @@
<!-- /wp:query --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"erma","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
6 changes: 3 additions & 3 deletions erma/templates/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- wp:template-part {"slug":"header","theme":"erma","tagName":"header"} /-->
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="padding-right:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"right":"0","left":"0"}}},"layout":{"type":"default"}} -->
Expand All @@ -22,7 +22,7 @@
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-content {"lock":{"move":false,"remove":false},"layout":{"type":"default"}} /-->

<!-- wp:template-part {"slug":"post-meta","theme":"erma"} /--></div>
<!-- wp:template-part {"slug":"post-meta"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
Expand All @@ -38,4 +38,4 @@
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"erma","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
4 changes: 4 additions & 0 deletions erma/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,10 @@
{
"area": "footer",
"name": "footer"
},
{
"area": "uncategorized",
"name": "post-meta"
}
],
"version": 2,
Expand Down
2 changes: 1 addition & 1 deletion poesis/templates/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:template-part {"slug":"post-meta","theme":"poesis","area":"uncategorized"} /--></div>
<!-- wp:template-part {"slug":"post-meta","area":"uncategorized"} /--></div>
<!-- /wp:column -->

<!-- wp:column {"width":"10%"} -->
Expand Down
4 changes: 4 additions & 0 deletions poesis/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@
{
"area": "footer",
"name": "footer"
},
{
"area": "uncategorized",
"name": "post-meta"
}
],
"version": 2,
Expand Down

0 comments on commit 171b46a

Please sign in to comment.