From c5a70a6e0c925f079697b47ff90ce53c4dc2cef1 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 30 Sep 2024 17:33:28 -0400 Subject: [PATCH] Theme.json: Remove template part data from parent theme. 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 https://github.com/WordPress/five-for-the-future/issues/325. --- .../themes/wporg-parent-2021/theme.json | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/source/wp-content/themes/wporg-parent-2021/theme.json b/source/wp-content/themes/wporg-parent-2021/theme.json index 7706ef34..dd34bcb7 100644 --- a/source/wp-content/themes/wporg-parent-2021/theme.json +++ b/source/wp-content/themes/wporg-parent-2021/theme.json @@ -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" - } ] }