Display icon for external links?

Is there any way to display an arrow icon after external links (the way wikipedia does) in Confluence 5.0, to make it clear to users that they're leaving the site? It looks like there used to be, according for the documentation for 3.5, but it doesn't exist any more.

1 answer

1 accepted

1 vote
David Simpson Community Champion Apr 08, 2013

In Confluence Admin | Custom HTML | Add the end of the HEAD, paste:

<style>
a[href^="http://"], a[href^="https://"] {
    background: url(http://bits.wikimedia.org/static-1.22wmf1/skins/vector/images/external-link-ltr-icon.png) center right no-repeat;
    padding-right: 13px;
}
</style>

That should do the trick. Maybe get your own icon though.

Thanks for that! Is it right that this uses the latest version of CSS, so it'll only be supported by the latest browsers though?

David Simpson Community Champion Apr 10, 2013

I think this should be good for IE7+

Attribute selectors in CSS have been around for some time now. If youre using Confluence 5, then you'll need a reasonably modern browser: IE8+ or the latest version of the other browsers.

If you like it, mark it as correct ;)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

866 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you