Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#54266 new enhancement

Enhancing WordPress - CSS for Category links

Reported by: ireviewfreemovies's profile ireviewfreemovies Owned by:
Milestone: Awaiting Review 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 (1)

#1 @joyously
3 years ago

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/

Note: See TracTickets for help on using tickets.