Fontawesome icon macro

how to use fontawesome macro to link a icon to external URL

Hello,

Like this?

[[(% class="fa fa-arrows icone" %) >>http://www.xwiki.org]]

Pascal B

This is specific to FA (but simple enough to use). Note that if you wish something more generic, you can use http://extensions.xwiki.org/xwiki/bin/view/Extension/Icon%20Theme%20Application#HForDevelopers

More specifically the following is generic and will work with any Icon Set used (you check the mapping here: http://design.xwiki.org/xwiki/bin/view/Proposal/XWiki%20Icon%20Set).

{{velocity}}
[[$services.icon.render('home')>>http://www.xwiki.org]]
{{/velocity}}
1 Like

image

Is there no way to remove this exernal link icon

With CSS in SSX:

.wikiexternallink {
     background: none;
 }
1 Like

Sorry wrong copy/paste: I fixed it with “background: none;” and correct my previous post :confused:

Note: firebug is our friend!