Add support for Child Blocks like Child Themes #37705
Labels
[Status] Needs More Info
Follow-up required in order to be actionable.
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
What problem does this address?
This feature request only resembles similarity in the name with the following: #6753
Although following Wordpress naming conventions, this describes better what the functionality should do. In any conflict with the other pull request, then change the name of this feature request whatever you want, until it describes the wanted functionality. If someone already asked for this feature, then please forgive me, I wasn't thorough to find it then.
So to understand, this question IS NOT ABOUT BLOCK NESTING!
Gutanberg blocks should have a feature to import another block as a base for modifications, like re-styling, adding or replacing functions and re-appearing under a new block in the editor. In functionality, this is exactly what a child theme does!
For example: I want to make a gallery block, where the images statically resembles the look of an Instagram API request in footer area. For easier understanding, this is the mockup:
A well written gallery block already present in the core library, so why should I copy that code for my plugin for a slight re-styling? The easier solution would be to create a child block, have a slight CSS modification to put the images in one line until a responsive breakpoint, and maybe edit the code to limit maximum number of images able to upload in the gallery?
The advantages would be:
What is your proposed solution?
The implementation should be turned on with a simple switch, like:
The text was updated successfully, but these errors were encountered: