Forum Replies Created
-
AuthorPosts
-
paula1
MemberYes, Brad. It works like in your reply. nth-child selector handles well to add different colors for category links.
As an example above -
Category 2 = Orange
Category 5 = Blue
...
...
... etc.But if the post is under category 1 and category 3, those two category links will go with same colors -
Category 1 = Orange
Category 3 = BlueSo, nth-child selector - it doesn't help to assign specific color for each category link.
But, I really like your solution. Just using CSS to achieve it.
paula1
MemberWould it be possible to add category slug in $output span?
$output = sprintf( '<span %s>', genesis_attr( 'entry-categories' ) ) . $atts['before'] . $cats . $atts['after'] . '</span>';paula1
MemberThat's really neat solution. I did try and it works. Fantastic.
But, sadly, that won't help to assign specific color for each category link.
paula1
MemberThanks for quick reply. I do appreciate it braddalton.
Yes. I really want to display different color for each category link at post meta.
I've 4-5 categories in my blog.
-
AuthorPosts