Jump to content

Topic on Skin talk:Refreshed

Font awesome integration

2
Manbu (talkcontribs)

I like Your skin but not Your icons . The new FontAwesome extension integrates icons like

{{#far:fa-comment-alt}}

In RefreshedTemplate.php the icons are added like

'wikiglyph wikiglyph-trash' => 'ca-delete',

Do You know a syntax-solution how to replace these icons with fontAwesome

MtMNC (talkcontribs)

You can't use MediaWiki extensions to change the icons, but you can still customize them.

Refreshed 3 uses CSS pseudo-elements to produce its icons. In principle you should be able to adjust them with CSS (select the relevant pseudo-element with CSS, remove its text by changing its `content` value, and add a new icon as a `background-image`).

Meanwhile, Refreshed 4 uses inline SVGs. You can adjust those similarly (select the SVG with CSS, give it a `background-image`, and hide its child path element(s) using `display: none`).

Reply to "Font awesome integration"