Skip to content

Commit

Permalink
Theme.json: Remove template part data from parent theme.
Browse files Browse the repository at this point in the history
Having the partials set up with area data is causing the template-part block to use that tagName when rendering the template. This causes issues for our header and footer blocks, which each use `header` and `footer` tags themselves.

This removes the other template partials as well, because they're not being used in the child themes.

See WordPress/five-for-the-future#325.
  • Loading branch information
ryelle committed Sep 30, 2024
1 parent 0eda271 commit c5a70a6
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions source/wp-content/themes/wporg-parent-2021/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -995,37 +995,5 @@
"title": "No Secondary Content",
"postTypes": [ "page", "post" ]
}
],
"templateParts": [
{
"name": "header",
"title": "Header",
"area": "header"
},
{
"name": "cover",
"title": "Cover",
"area": "uncategorized"
},
{
"name": "entry-header",
"title": "Post Header",
"area": "uncategorized"
},
{
"name": "entry-header-no-meta",
"title": "Page Header",
"area": "uncategorized"
},
{
"name": "footer-simple",
"title": "Footer without Secondary Content",
"area": "footer"
},
{
"name": "footer",
"title": "Footer",
"area": "footer"
}
]
}

0 comments on commit c5a70a6

Please sign in to comment.