[wp-trac] [WordPress Trac] #55427: Make .wp-block-post stylable via theme.json
WordPress Trac
noreply at wordpress.org
Sun Mar 20 16:04:47 UTC 2022
#55427: Make .wp-block-post stylable via theme.json
-----------------------------+-----------------------------
Reporter: Clarus Dignus | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 5.9.2
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
I can style various aspects of the Query Loop block via theme.json.
E.g. core/post-template styles .wp-block-post-template, core/post-title
styles .wp-block-post-title, etc.
{{{
"blocks": {
"core/post-template": {
"border": {
"style": "solid",
"width": "1px",
"color": "#000"
}
},
"core/post-title": {
"border": {
"style": "solid",
"width": "1px",
"color": "#000"
}
}
}
}}}
However, core/post doesn't style .wp-block-post.
{{{
"blocks": {
"core/post": {
"border": {
"style": "solid",
"width": "1px",
"color": "#000"
}
}
}
}}}
.wp-block-post is the container of each post outputted by the Query Loop
block, i.e., it contains each post's title, featured image, date, excerpt,
etc.
Please make .wp-block-post stylable via theme.json like the elements it's
within and elements within it.
Currently, I'm limited to styling .wp-block-template via style.css. One of
the downsides of this is that the style doesn't apply in the editor.
core/post isn't a block in the sense that it can be selected and edited
via the editor.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55427>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list