XF 2.0 Custom CSS for external links

Nicolas FR

Well-known member
Hello,

I write this in extra.less template
CSS:
a.link.link--external {
    background: rgb(245, 245, 245);
    padding: 0 5px;
    border: @xf-borderSize solid @xf-borderColorLight;
    border-radius: 50px;
    }

to get this:
Capture d’écran 2018-10-29 à 16.39.27.webp
And that's ok, that's what I wanted it to be
But when the link is not a text but an image i get this:
Capture d’écran 2018-10-29 à 16.39.08.webp
The image is displayed as text-link. How can i disable the custom CSS for image-link ?

Thanks !
 
Last edited:
Top Bottom