XF 2.x Add icon before a link on a Thread

BassMan

Staff member
Administrator
Messages
775
Likes
404
Website
www.customizexf.com
#2
Add this to your extra.less template:

CSS:
.link--external:before {
    font-family: FontAwesome;
    content: "\f14c";
    padding-right: 3px;
}
.link--internal:before {
    font-family: FontAwesome;
    content: "\f0c1";
    padding-right: 3px;
}
 

BassMan

Staff member
Administrator
Messages
775
Likes
404
Website
www.customizexf.com
#4
Use this code:

CSS:
[data-template="thread_view"] .link--external:before {
    font-family: FontAwesome;
    content: "\f14c";
    padding-right: 3px;
}
[data-template="thread_view"] .link--internal:before {
    font-family: FontAwesome;
    content: "\f0c1";
    padding-right: 3px;
}
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top