-
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
Specify which blocks to populate a new template with #32211
Comments
There should probably be a hierarchy:
|
That hierarchy makes sense to me. The UI could also be refined to make it clear what the source template is, or allow the user to select / change it. |
In my response to an FSE outreach call #6 I wrote
https://sneak-peek.me/2021/05/23/call-6-template-editing-and-navigation-block/#more-429 The Create new template dialog would be:
An additional benefit of cloning an existing template is that the attributes of the template-parts used in the template would be copied. I noted, during call #7, that I needed to (re)define the attributes for each existing template part when I was building the new template. |
Cloning an existing block template is a good idea. With block themes, users can select and edit an existing template, but there's no way to give it a new slug (AFAIK). For 5.8 and non-block themes, I don't think there'd be a good way to do that since they are built on PHP. But, for block templates, I'd love to see that as an option. |
PHP themes should be able to provide a template without needing to add a block-based template. It will be impossible to transition most PHP themes to being block-based while keeping the same design and functionality. So you can't expact authors to add But authors still would want to offer something better than the current default template, which looks very poor. Even if authors can't offer a template that looks exactly like the PHP templates, they can at least offer something a bit more styled. I'm very surprised that the default template is hardcoded without even the slightest possibility to change this through any mean whatsoever. |
Linked this issue to #32771 which adds a way to define the default templates. When that PR gets merged this one can be closed 👍 |
This issue relates to the recently introduced template creation / editing feature.
When I go to create a new template, the template appears to auto-populates with the following blocks:
Example screenshot with emptytheme:
Are the default blocks to populate a new template being considered? What default makes sense?
Some thoughts / options from a theme developer perspective:
a)
singular
falling back toindex
b) entirely blank
c) give the theme a way to specify
The text was updated successfully, but these errors were encountered: