font awesome: please make it removable
-
Hi,
I appreciate you are using font-awesome. This is a pretty popular icon font these days. Actually several developers are using this.And this is the problem: Due to the different ways font-awesome is included in the code, you can end up with a page loading font-awesome several times.
Usually you can get rid of this by codings like
wp_deregister_style( 'font-awesome-css' );
For hueman this does not work since the CSS directly includes the font via
@font-face { font-family: 'FontAwesome'; src: url('../fonts/fontawesome-webfont.eot?v=4.6.1'); src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.6.1'); ... }
Overwriting this in my own CSS does not work since as far as I know @font-face cannot be cleared from the style sheet. Overwriting src does not work neither, it just gives you an additional entry.
So please be so kind to include the usage of fontawesome in a separate stylesheet included in functions.php, so developers are able to remove it via wp_deregister_style.
Thanks for your excellent theme, by the way!
Greetings Oliver
- The topic ‘font awesome: please make it removable’ is closed to new replies.