Opened 5 months ago
#58236 new defect (bug)
theme.json customTemplates with child themes work wrong
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.3 |
Component: | Editor | Keywords: | |
Focuses: | template | Cc: |
Description
If you use child themes, then customTemplates in theme.json does not work and behaves badly
- It is not possible to delete or overwrite parent custom template - neither false nor empty array helps
- It is not possible to create a new custom template - it simply does not appear
- and what is strange - if you try to create your own custom template, it will throw away the naming and parent template at that position, so then when you select the template for the page, it doesn't show the title but the name. Example - if you make a child theme from twenty-three, and you type
"customTemplates": [ { "name": "no-title", "postTypes": [ "page" ], "title": "No title" }],
so when the page is selected, it will display 'blank' instead of 'Blank' (blank is the name of the first template in the parent twenty-three theme). If you try
"customTemplates": [{}, { "name": "no-title", "postTypes": [ "page" ], "title": "No title" }],
so when you select a page, it will display "blog-alternative" instead of Blog (Alternative) (blog-alternative is the second template in the parent theme).
Child template can't be added like this even in the fourth position
Unfortunately, this makes the whole thing completely unusable.
Attachments (2)
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is an example of that mentioned third problem