• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Add icon before a link on a Thread

New Joe

Active member
#1
When I used vB I used this below code which would add a nice icon before a url link in a Thread

Code:
.message .messageContent .messageText a {
    /*background: url("/images/url.gif") no-repeat scroll left center transparent !important;*/
    /*padding-left: 15px; */
}
I would add that in the EXTRA template
However for some reason it doesn't work on Xenforo

On my test site I got it working some how but I can't remember how I did it now
Any ideas?
 
Last edited:

TJA

Well-known member
#2
Try these

Code:
.messageContent .externalLink:before {
content: url ("/images/url.gif") !important;
padding-right: 2px !important;
}

.messageContent .internalLink:before {
content: url ("/images/url.gif") !important;
padding-right: 2px !important;
}