Removing .link-external icon?

  1. 4 years ago

    Hi! How do I remove icon (like this ) after external links? I'm suffering lack of coding skills here :)

  2. @pajasu Hi! How do I remove icon (like this ) after external links? I'm suffering lack of coding skills here :)

    You've got to manually edit the bbcode plugin to do this.

  3. Can you point me where to edit?

  4. @pajasu Can you point me where to edit?

    /addons/plugins/BBCode/plugin.php line 105
    You might have to edit /addons/plugins/BBCode/resources/bbcode.js as well.

  5. I'll try, thnx.

  6. @pajasu I'll try, thnx.

    Also check line 50 addToArrayString($controls, "link", "<a href='javascript:BBCode.link(\"$id\");void(0)' title='".T("Link")."' class='control-link'><i class='icon-link'></i></a>", 0); and see if editing this helps you.

  7. Toby

    5 Oct 2014 Administrator
    Edited 4 years ago by Toby

    An icon is also added to non-BBCode links like this — google.com — that happens in core/lib/ETFormat.class.php:245.

    I think ideally the icon should be added using a CSS pseudo-selector rather than being hard-coded in. Feel free to open and issue/PR.

  8. This should all be in CSS, and not in the code itself.

 

or Sign Up to reply!