One color to category link depending on category ID

Question

I would like to style a category link depending on its ID, for instance, if the category ID is 2, then I want the link to be pink.

I cannot find a way to do the same thing to links. What type of solutions are available? Please be detailed in your reply as my coding knowledge is limited. Thanks a lot 🙂

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/one-color-to-category-link-depending-on-category-id/">

One color to category link depending on category ID</a>
0
Ludo 7 years 0 Answers 36 views 0

Leave an answer