-
Notifications
You must be signed in to change notification settings - Fork 41
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
Docs for block-based template parts in classic themes #446
Comments
Heads up @kafleg @carolinan @TeBenachi - the "themes" label was applied to this issue. |
When this page is created, this section in the block editor handbook should be updated so that the content is not duplicated in two different handbooks: |
Requesting review and feedback for proposed section: Adding block template parts in classic themesSince WordPress 6.1, classic themes can add block-based template parts. The feature allows end-users to customize their output via Appearance > Template Parts in the WordPress admin. Theme authors must register support to enable the feature: add_theme_support( 'block-template-parts' ); From that point, developers can add template parts to their theme's In general, a PHP-based template part that is included via Important! Classic themes must add opening and closing |
This text looks good to me. |
Should this concept be introduced on https://developer.wordpress.org/themes/basics/template-files/ or would that become overwhelming? |
👍
After diving deeply into this subject for the past week, I'd say it depends. It's tougher to do this from an existing classic theme (often lots of fixes), but it's pretty easy to do from a new classic theme. It can definitely be a bit of mixed message too for someone new who doesn't understand the classic/block differences yet. On a related note that I'm still mulling over, it might not hurt for us to have pages for different "workflows," depending on how a theme author wants to build a theme. Not sure what that would look like yet though. |
Added the block template parts section. Closing this ticket as complete since we reached that goal. |
Issue Description
WordPress 6.1 is introducing block-based template part support for classic themes. This is an important step for gradual adoption of FSE. We need to update the "Gradual adoption" section of the "Converting a classic theme" page with info on how to make use of the feature.
URL of the Page with the Issue
https://developer.wordpress.org/themes/block-themes/converting-a-classic-theme-to-a-block-theme/
Section of Page with the issue
https://developer.wordpress.org/themes/block-themes/converting-a-classic-theme-to-a-block-theme/#gradually-adopting-the-full-site-editing
The text was updated successfully, but these errors were encountered: