Make WordPress Core

Opened 5 years ago

Closed 14 months ago

#54266 closed enhancement (wontfix)

Enhancing WordPress - CSS for Category links

Reported by: ireviewfreemovies Owned by:
Priority: normal Milestone:
Component: General Version: 5.8.1
Severity: normal Keywords:
Cc: Focuses: ui, css, performance

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)

#1 @joyously
5 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/

#2 @flixos90
14 months ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

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.