Channel: #themereview
Facilitated by @kjellr
Gutenberg + Themes Updates
- 10.0.0 was just released
- If you’ve defined
pageTemplatesin your theme.json, you’ll want to rename those tocustomTemplatesas noted in this PR. - Gutenberg will now enqueue the comments reply script automatically when the comments block is used.
- The Query block should now properly interpret the global query when used on single pages.
- If you’ve defined
- Here is a PR that lets folks try a hybrid template hierarchy — using both HTML and PHP templates.
Discussion: Bridging the gap between traditional themes and block themes
A healthy discussion ensued about how to transition between traditional / classic themes and block themes. You can read the full discussion starting here.
- Hybrid Themes
- Ari and other folks have been discussing how template hierarchy could involve both block-based and PHP templates. There’s a PR to try out a similar idea.
- @pbking had discussed the idea of pulling blocks into standard templates, and now has a PR here, as well as a Gutenberg issue filed.
- “The templating system and using a mix of PHP & HTML files is easy on the frontend… The problem is mostly focused around the “what happens in the editor if A/B/C” questions.”
- Blocks can be used in traditional templates with
echo do_blocks( '<!-- wp:post-title /-->' );orecho do_blocks( file_get_contents( 'block-templates/page.html' ) );— this could make it easier for theme developers to convert their PHP templates to block templates while keeping their same templating structure.
- Global Styles Now
- It seems like themers should want to use theme.json / global styles without changing any of their templates. How do we give users access to the global styles, without forcing them to be using a completely FSE ready theme?
- “Finding the perfect place/UI for it may be hard, but I think it’s very important to have GS be somehow decoupled from FSE”
- “If a theme has a
theme.jsonfile then yes,I think we should hide the customizer link and instead point them to the global-styles UI (wherever that may be). Having 2 interfaces to edit styles would be confusing.”
Seeking Volunteers!
Are you interested in helping out with the future of themes? We need folks to lead this meeting and help compile weekly updates, reach out to @kjellr if you’re interested!