-
Notifications
You must be signed in to change notification settings - Fork 42
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
Template Part Support Page #74
Comments
I have started on this, and I found it difficult to describe how:
https://wordpress.org/support/?p=15124095&post_type=helphub_article&preview=1&_ppp=d5f684b542 |
Finally digging in here. Thanks for the patience. For starters, love the simplicity of this line:
Stealing it for the navigation block as I had a much clunkier one in place! I'd recommend moving this line after intro-ing, loosely, what it is. This is repeated twice:
I might also update it to say something closer to what's in the glossary (wouldn't reuse all of it, just parts): "Building on Block Templates, these parts help set structure for reusable items like a Footer or Header that one typically sees in a WordPress site. They are primarily site structure and are never to be mixed with the post content editor. With Full Site Editing and block based themes, users can create their own arbitrary Template Parts, save those in the database for their site, and re-use them throughout their site. Template parts are equivalent – in blocks – of theme template parts. They are generally defined by a theme first, carry some semantic meaning (could be swapped between themes such as a header), and can only be inserted in the site editor context (within “templates”)." I'd have "Replacing one template part with another" at the same heading level as "Making changes to a template part". P.S. For some reason the screenshots you included are a bit blurry for me. |
Alright! I dove in and built out this page today with sections similar to other advanced blocks, like the query loop block. As @carolinan noted, this is a tricky block to describe but I think this does it enough justice for now. Going to ship today in light of this convo in slack where current links in 5.9 RC1 are broken because these are not published. Going to keep this open for feedback though as I imagine we'll need to iterate cc @zzap @mkaz https://wordpress.org/support/?p=15124095&post_type=helphub_article&preview=1&_ppp=a24fdce4d9 Will loop back with a comment when live (need to finish edits to the Template editor 😅 ). |
Noting I had to make some changes since this PR wasn't backported for RC1 (I added way more than I needed to 🤦🏼 ): WordPress/gutenberg#36571 |
What is the new page you are requesting?
An article describing what a template part block is and how best to use it, likely similar to Query Loop or other theme blocks.
How will this new page help you?
It's part of a feature that will see greater adoption with WordPress 5.9's feature set.
The text was updated successfully, but these errors were encountered: