Fix error: Template part has been deleted or is unavailable in Erma, Poesis, and Meraki (#7348)

* Remove theme attribute from erma theme

* Remove theme attribute from poesis theme

* Add post meta template part in theme.json
This commit is contained in:
Miguel San Segundo 2023-09-07 21:13:23 +07:00 committed by GitHub
parent b5faae3366
commit 171b46ae04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 26 additions and 14 deletions

View file

@ -33,6 +33,10 @@
{
"name": "footer",
"area": "footer"
},
{
"name": "post-meta-icons",
"area": "uncategorized"
}
],
"customTemplates": [

View file

@ -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"}} -->
@ -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"} /-->

View file

@ -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"} -->
@ -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"} /-->

View file

@ -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"}} -->
@ -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"} /-->

View file

@ -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"}}}} -->
@ -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"} /-->

View file

@ -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"}} -->
@ -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"} /-->

View file

@ -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"}} -->
@ -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 -->
@ -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"} /-->

View file

@ -640,6 +640,10 @@
{
"area": "footer",
"name": "footer"
},
{
"area": "uncategorized",
"name": "post-meta"
}
],
"version": 2,

View file

@ -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%"} -->

View file

@ -539,6 +539,10 @@
{
"area": "footer",
"name": "footer"
},
{
"area": "uncategorized",
"name": "post-meta"
}
],
"version": 2,