inherit
206056
0
Apr 21, 2024 23:58:31 GMT -8
adminabp
375
February 2014
adminabp
|
Post by adminabp on Jun 18, 2018 12:50:09 GMT -8
Thread title says it all. I want a way to replace the text in thread labels with images. So I could replace something like [music] with Don't know if this could be done simply with a script or if it would require a plugin. Any help would be appreciated.
|
|
inherit
149117
0
Apr 26, 2024 3:14:45 GMT -8
Pearson
"a picture is worth a thousand words, a moving picture is worth a million words" Pearson
6,536
November 2009
pearson
|
Post by Pearson on Jun 18, 2018 14:27:50 GMT -8
|
|
inherit
206056
0
Apr 21, 2024 23:58:31 GMT -8
adminabp
375
February 2014
adminabp
|
Post by adminabp on Jun 18, 2018 15:05:31 GMT -8
I know, I use it to add images to my thread titles. I meant the labels you can 'tag' a thread with. Sorry if I wasn't more clear. And if I could use that plugin to change tags, I would need someone to talk me through how.
|
|
inherit
149117
0
Apr 26, 2024 3:14:45 GMT -8
Pearson
"a picture is worth a thousand words, a moving picture is worth a million words" Pearson
6,536
November 2009
pearson
|
Post by Pearson on Jun 18, 2018 15:22:51 GMT -8
|
|
inherit
206056
0
Apr 21, 2024 23:58:31 GMT -8
adminabp
375
February 2014
adminabp
|
Post by adminabp on Jun 18, 2018 20:50:08 GMT -8
Thank you so much, that is exactly what I was looking for! Unfortunately, while it changes the text to an image just fine where it is displayed, it also seems to nerf the section where tags are applied, making that part unworkable. Still gives me a good starting point to work from. I'll play around with it a bit... Thanks again!
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,856
December 2005
horace
|
Post by Chris on Jun 18, 2018 21:54:06 GMT -8
Add the o-label-anchor ancestor class to further restrict the CSS to only displayed labels and avoid affecting the label selector itself .o-label-anchor .label-2 { font-size: 0; }
.o-label-anchor .label-2::after { background-image: url("//cdn4.iconfinder.com/data/icons/it-communication-line/614/2858_-_Connected_Devices-512.png"); content: " "; background-size: 40px; display: inline-block; width: 40px; height: 40px; }
|
|
inherit
206056
0
Apr 21, 2024 23:58:31 GMT -8
adminabp
375
February 2014
adminabp
|
Post by adminabp on Jun 19, 2018 22:44:05 GMT -8
.o-label-anchor .label-2 { font-size: 0; }
.o-label-anchor .label-2::after { background-image: url("//cdn4.iconfinder.com/data/icons/it-communication-line/614/2858_-_Connected_Devices-512.png"); content: " "; background-size: 40px; display: inline-block; width: 40px; height: 40px; }
Awesome! Works perfectly. Thank you Chris!
|
|