Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cbernard's avatar

Fontawesome PHP brand icon won't load

I've installed Fontawesome using bower, and I ran npm run dev. I can use any of the Fontawesome free brand icons like Quora, Paypal, Amillia, but when I try to use the PHP icon nothing is displayed. Any ideas?

0 likes
4 replies
arthurvillar's avatar

Fontawesome recently merged to their new version 5 but installing them through package managers still pulls in the older version. You are probably using their current website to copy the icon html tags, but the code you have expects the old tags.

An easy way to check if this is the case is to install their CDN on the head of your page and see if the icons work.

<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>

Here is the documentation.

cbernard's avatar

This might not be the right place for this discussion but when I do this:

<html>
    <head>
        <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
</head>
<body>
</body>
    <i class="fas fa-camera-retro"></i>
    <i class="fas fa-php"></i>
</html>

I can see the camera-retro icon on the page, but I get a flashing exclamation mark/question mark for the fa-php icon.

So that would suggest it's a font-awesome issue rather than a bower issue. Right?

russellwwest's avatar
Level 1

Hi, as its a brand and in the brand package, instead of fas fa-php you need

<i class="fab fa-php"></i>

Please or to participate in this conversation.