(Superseded) Add a custom fontawesome icon and color to your tag

@pmusaraj that’s great news and I’d love to see a theme component for this :+1:

3 Likes

Any progress on your idea for a theme component for this feature? :sunglasses:

1 Like

Not yet… I will see if I can figure out something this week.

5 Likes

Good news: the theme component for custom icons next to the tag is ready: Tag icons component

8 Likes

I copy pasted the same in common/css with new url and it is showing css error

Error: Invalid CSS after “…23755, ‘https”: expected expression (e.g. 1px, bold), was “://icons.iconarchiv”
on line 20 of theme_3/theme_field.scss
from line 1 of theme.scss
>> @include withImage(#823755, ‘https://icons.iconarchive.com/icons/syk
--------------------------------^

Anyone been able to get this working with the Tickets Plugin enabled? Regular tags work fine but I’m unable to get priority tags to show any color or icons.

it could be the tickets plugin interfering, which I think has its own method for showing icons. I’d submit a bug report at thepavilion.io.

2 Likes

I ended up figuring it out. I needed to customize it a bit. The below works well for me.

[href="/admin/tickets?filters=priority:priority-0-backlog"]:link,
[href="/admin/tickets?filters=priority:priority-0-backlog"]:visited,
[href="/admin/tickets?filters=priority:priority-0-backlog"].bullet:before {
    color: #e29700 !important;
}
1 Like

Hi @ChrisBeach ,
I’ve installed the Tag icons theme component. These are my current settings:

I’ve defined three tags that are attached to a Font Awesome icon:

  • bug-showstopper attached to skull-crossbone
  • bug-major attached to exclamation-triangle
  • bug-minor attached to exclamation-circle

This works just fine. However, I try to attach the fourth tag beetle to my uploaded svg-file beetle-face.svg. Unfortunately, this doesn’t work.

How do I attach my own svg-file to a tag properly? Please help me step-by-step. I’m really a beginner here on discourse (just started today) and I have limited background in web technology.
Thank you very much :slight_smile:

2 Likes

Hi there. I’m afraid I did not create this component and cannot assist

2 Likes

Hi @ChrisBeach, thank you very much for your quick reply. I thought you were one of the developers of the Tag Icons theme (component), because you’ve got Theme Author next to your name :slight_smile:
My apologies.

I just got an answer from the author here:

Many thanks.
Kind greetings,
Kristof Mulier

1 Like