-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Block] Post TemplateAffects the Post Template BlockAffects the Post Template Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
On the front-end, the class wp-block-post is added to the li elements of the wp-block-post-template.
In the editor on the back-end, this class is not present.
Why is this important?
- Especially for
lielements i'd say it is always better to target a specific class for custom CSS (developer experience). To reduce specificity problems. - The CSS block-classes on front and back-end should be 1-on-1.
Step-by-step reproduction instructions
- Fresh TT2 install or any clean block theme
- Add a query loop, choose a template.
- Inspect the code in the editor for
wp-block-post-template > li - Compare with front-end.
Screenshots, screen recording, code snippet
No response
Environment info
- WordPress 5.9.2
- Checked without and with latest Gutenberg (12.9)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Block] Post TemplateAffects the Post Template BlockAffects the Post Template Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended