If you’re managing an older website running Font Awesome 4, you might be asked to swap out the Twitter icon for the new X / 𝕏 symbol. Personally, I wasn’t in the mood to pull down an entire site, dig up the build process, replace FA4 with a newer version, etc. Instead, I jumped into the WordPress Customizer and added a few lines of CSS.
This should work pretty well, but you might also mess around with the font size and weight a little bit if it looks weird next to the other icons. Is the “𝕏” glyph actually the new Twitter logo? I guess?
.fa.fa-twitter{ | |
font-family:sans-serif; | |
} | |
.fa.fa-twitter::before{ | |
content:"𝕏"; | |
font-size:1.2em; | |
} |
Leave a Reply