meglio
(Anton)
2015 年6 月 29 日 04:02
1
Is there a way to change tracking icons?
I’d like to try using loud-speaker as a base for all 4 icons. The circle makes little sense and I notice that my users never click there and don’t know what is that for. I think a different icon would bring their attention.
1 个赞
I’d be tempted to put a picture of a letter on Watching, since that’s what we use to indicate “yes, you’ll get emailed on this category/topic”
now that I think about it… there’s nothing really alarming to indicate a !
in the first place.
1 个赞
Add this to your custom CSS:
.icon.fa.fa-circle.tracking::before {
content: "\f0a1";
}
That’s just the icon though. You could add a color, background color and radius to make a circle if you’re feeling fancy.
7 个赞
Tom_Newsom:
f0a1
And so for the envelope I want, I’ll use f003
I see that these can be looked up on FontAwesome:
http://fortawesome.github.io/Font-Awesome/icon/envelope-o/
and snag the Unicode identifier.
Thanks so much @Tom_Newsom
2 个赞
So, my completed set is:
.icon.fa.fa-circle.tracking::before {
content: "\f075";
}
.fa.fa-circle.tracking::before {
content: "\f075";
}
.icon.fa.fa-exclamation-circle.watching::before {
content: "\f003";
}
.fa.fa-exclamation-circle.watching::before {
content: "\f003";
}
This leaves me with envelopes for topics which will get you emailed (watching), and a chat bubble for topics which will just notify you (tracking).
I don’t know how to put a blue circle around the envelope, but I think this is a great improvement over the Exclamation point.
1 个赞
It’s called “stacking”
http://fortawesome.github.io/Font-Awesome/examples/
<span class="fa-stack">
<i class="fa fa-envelope fa-stack-1x"></i>
<i class="fa fa-circle-o fa-stack-2x"></i>
</span>
4 个赞
Wow, font awesome really is, well, awesome
1 个赞
Could anyone indulge me with the syntax of getting a stacked icon to instead of the normal icon?
Circle-thin is a thing in Font-Awesome 4.1, and I’d love to put that around all the iconf for uniformity.
<span class="fa-stack">
<i class="fa fa-envelope fa-stack-1x"></i>
<i class="fa fa-circle-thin fa-stack-2x"></i>
</span>
dax
(Daniela)
2018 年5 月 18 日 10:59
9
Changing an icon globally is very simple using APIs
This is an easy way to change a Discourse icon globally.
Right click on the icon you want to change and select “Inspect element” or “Inspect” (depends on the browser)
Find the icon name
[image]
Search a new icon here Find Icons with the Perfect Look & Feel | Font Awesome , e.g. external-link-alt
Customize and add the code in your admin > customize > themes > Header tab
<script type="text/discourse-plugin" version="0.11">
api.replaceIcon('link', 'external-link-tab');
…
3 个赞