Topic on Extension talk:FontAwesome

Just displaying blank boxes?

4
Natrashafierce (talkcontribs)

Hello, apologies for posting here and not the forum link provided below, but when I tried to register for an account there I got a PHP error.

I installed the extension and it only displays blank boxes. I am using MW 1.22 and the Vector skin. I followed the installation instructions exactly, including adding the line to Vector.php. I installed it to extensions/FontAwesome and everything. (Within the FontAwesome folder, the archive automatically put FontAwesome.php and FontAwesome.i18n.php, then another folder called font-awesome. If this should not be the case, please let me know.)

The extension appears to work otherwise: I can use things like fa-border and the border shows up, or fa-3x to make the blank box bigger. It's just that all the icons are blank boxes.

I am using the syntax "fa fa-ICONNAME" for the class, so it's not that I'm leaving out the "fa" either. What should I do? Thank you for any help!

SwiftSys (talkcontribs)

Hi Natrashafierce,

thanks for the question, do you have a link to your website as I'm stabbing in the dark without seeing anything, if I were to guess it sounds like there's issue with the fonts, there should be 5 fonts files located in the fonts folder.

Natrashafierce (talkcontribs)

Hello!

I think the issue lies somewhere with the nesting of the folders: on a hunch, I tried editing the URL SRC at the beginning of font-awesome.css from '../fonts/' to the full URLs for each font... which is just MYSITE.com/extensions/FontAwesome/font-awesome/fonts, exactly what you'd expect and exactly what the extension archive automatically creates.

This is just a guess, but I think perhaps because FontAwesome.php calls on font-awesome.css, the font folder in font-awesome.css doesn't resolve properly? That is, after being called by FontAwesome.php, maybe font-awesome.css acts like it's in extensions/FontAwesome (like FontAwesome.php) and ends up looking for extensions/fonts rather than extensions/FontAwesome/font-awesome/fonts?

SwiftSys (talkcontribs)

Yes this extension has been very problematic of late, seems to work for some people and not for others, can't say why this would be. I keep promising to remove this extension as my time is spent developing my skin, nevertheless lets try and resolve this for you.

If you open font-awesome.css there should be some links at the top, these link to the fonts (in the font folder) have a play with those, I did test this previously because one of my developers screwed around with the links and didn't put them back before uploading, but I thought I'd solved this problem.

If you're worried about showing a link here, you can email me - info[at]mediawikibootstrapskin.co.uk will make solving this problem a whole lot easier if I can take a look.

You might consider using the skin btw, it includes font-awesome, glythicons and fam-fam icons - see here.

Reply to "Just displaying blank boxes?"