-
Notifications
You must be signed in to change notification settings - Fork 23
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
Explore programattically merging parent/child theme.json
#1
Comments
At this point I'm leaning towards not bothering with a parent/child setup and just building the News site as a standalone. Beyond the missing functionality, there are still a lot of unknowns about other site redesigns that make it hard to figure out what should go in a parent vs in the child theme. I think we can revisit this and convert this theme to a child later when we have more information and some of the missing functionality has been added. |
Yeah, I'm guessing that'll be best, I'd just like to try this out in case it's not as hard as we think. It also doesn't have to be an either/or thing. if this works, then we could create a parent that basically only contains only contains Doing it that way might save some time when we migrate, and might remind us to be thoughtful about modularity throughout the process of building the child. |
I dug a bit here, but it doesn't look like
We could contribute to WordPress/gutenberg#27305, but it's probably better to focus our time here instead 👍🏻 |
WordPress/gutenberg#34354 made it so that |
block-based child themes don't inherit a parent's
theme.json
, which is one of the barriers to parent/child themes.Unfortunately
class-wp-theme-json-resolver.php
doesn't have any filters, but we might be able to useWP_Theme_JSON::merge()
, or overwrite some global until official support is implemented.Alternatively, we could assist with WordPress/gutenberg#27305 if we feel like it'd be worth it to start with a parent/child structure from the beginning.
The text was updated successfully, but these errors were encountered: