Opened 4 years ago
Closed 8 months ago
#54266 closed enhancement (wontfix)
Enhancing WordPress - CSS for Category links
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 5.8.1 |
| Component: | General | Keywords: | |
| Focuses: | ui, css, performance | Cc: |
Description
Not sure if you can do this but it would be helpful if there were classes to style the category links (a href's) displayed on posts. I would like to be able to colorize to match my category pages for UI purposes. Thank you.
Change History (2)
#2
@
8 months ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
Thank you for the request @ireviewfreemovies.
I think this is a very specific need that should be rather addressed in a plugin than in Core. Additionally, with the upcoming WordPress Admin redesign, it doesn't necessarily seem worth the effort at this point, after all these years.
Note: See
TracTickets for help on using
tickets.
That could be a bit confusing since color is one of the few properties you can change for visited links. Color is therefore kind of set up to represent the state of the link and using it for something else is cognitive load.
There is a function that has a formatting template parameter, but the format is static, not filtered, and doesn't pass the slug. If any of those were changed, that would solve your problem, but your theme would need to call that function (or
the_taxonomies()), or just use similar code to output the same thing with the class.https://developer.wordpress.org/reference/functions/get_the_taxonomies/