-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSE: support for child themes #25612
Comments
Just a note here: It's not just parent-themes and child-themes... It's also possible to have grandchild-themes, so this will probably need to be recursive and go up the themes-inheritance tree. |
@aristath While I can't find any definitive source, I thought WordPress never officially supported "grandchild" themes. |
Officially yes... But unofficially they do work fine provided the grand-child has minor changes and they are not that rare. With FSE themes it will be even easier (and in some cases even desirable) to have grandchild themes |
Going to pause #27305 for now. I've seen there's rapid movement in the FSE/templates area and I believe when that's more settle I can resume this work. |
Just a heads up, we are currently exploring block-based child themes and we found out an interaction that is a bit of an edge case but is relevant to this discussion. Having a parent theme that has a
|
Wanted to pass along feedback from the eighth call for testing for the FSE Outreach Program as it relates to exploring child themes within a block theme world:
If this needs to be reported in a new issue, let me know! |
I have a comment on child themes, partly in response to part of @annezazu's reply in the Outreach program comments,
On the contrary, I believe child themes make a lot of sense.
Child theme to add functionalityI've already implemented a child theme - Wizzie is a child theme of Fizzie.
In my solution:
Re merging theme.json filesIt would have been nice to have been able to have multiple The only differences between Wizzie and Fizzie's
It would be nice if the child theme's json file only contained the differences. I can see how easy it would be for new colors to be added to the palette, Child theme to restrict functionalityI hear many agencies complain about how hard it is to restrict their customer's ability to style content.
I imagine that many theme developers will want to enable all the options Providing a child theme seems the most logical solution, with the child theme's theme.json file overriding the parent theme's settings. But it may also be necessary to disable certain custom templates. How will that be achieved? |
I just found this issue, I think child themes will have theire own space in future of the FSE, also a grand-chil approach would be great in core. #33512 I've not tested it but thinking that just to restrict functionality to parent from child should be done by adding false to a value in json, like this:
Just thinking. |
Just a quick update: A few days ago I started working on a proof-of-concept PR to fix some child-themes issues (#33445). It's still at an early draft stage, but there will be updates coming there in the next few days. |
Hi @aristath |
Created PR to add basic support for child themes - #34354. I think merging global styles can be done as a separate PR. |
I merged basic support for child themes this morning, and it should be available in Gutenberg 11.6. Next stepAllow child themes to override parts (or entirely) of the parent's |
We had a go at this here: #35459 |
👋 Parent/child theme.json merging PR is ready for testing. I would appreciate more eyes on this one 🙇 |
Now that parent/child theme merging has landed in @oandregal, what do you think? |
Hey, absolutely. If this is working, we should close it. Just left a comment for clarifying one use case #35459 (comment) |
Sounds good, @oandregal. Let's track the theme supports issue separately. |
The next default theme TwentyTwentyOne (TT1) will explore FSE editing support, including Global Styles. It's also thought of as a teaching tool for other people to create child themes.
Ideally, child themes would also be able to override parts of its parent theme.json without having to write a new one.
The text was updated successfully, but these errors were encountered: