Styling for taxonomy-category in theme.json
What problem does this address?
Currently it's only possible to style the taxonomy-category in gutenberg editor:
I would like to style them in the theme.json and just do slight adjustments within gutenberg editor
What is your proposed solution?
Add core/taxonomy-category for the theme.json (Possibly also core/taxonomy-tag).
Hi @Marzii 👋
Thanks for taking the time to create this issue.
From what I can tell in the screenshot provided, the block selected is the core/post-terms block.
It's worth noting this same core/post-terms block is used both for categories and tags. Currently, there is no way in theme.json to style that block differently one way for categories and another for tags.
If you use core/post-terms as the block key within your theme.json can you achieve the styling you are looking for?
{
"styles": {
"blocks": {
"core/post-terms": {
...
}
}
}
}
Alternatively, there is also the core/categories block that might be of interest.
Following up on Aaron's question above: the block in the screenshot is core/post-terms, and styles.blocks.core/post-terms in theme.json styles it as expected. Closing as answered.