WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.41k stars 4.16k forks source link

Category / Tag Block: Add css classes #55560

Open hanneslsm opened 11 months ago

hanneslsm commented 11 months ago

In the category and tag block each category or tag should have their own css class.

Current state:

image

What is your proposed solution?

Currently it's not possible to target one specific tag or category (for example a "Alert" or "Breaking News" Category) for styling.

Expected possibilities:

image image
audunmb commented 8 months ago

A CSS a[href*="category/alert" i] selector will target the Alert category. While adding classes might make it easier, it's not strictly necessary.