Tagged: font awesome
Hi,
I have tried installing fonts/icons (via the Icon Font Manager with a downloaded zip file) and only some of them install. Other fonts/icons just show up as a square box. In particular, I’m trying to install the “cab” and the “pin” or “pushpin” from Font Awesome. After reading some posts, I installed the code shown below into my child functions.php but it didn’t didn’t help (I have not upgraded to the latest version yet – had issues when I updated to the latest WordPress, so for now, I don’t want to update the theme, either). Can you tell me if I need to do something else in order to get these other fonts/icons, and does it matter what set I am downloading (there seem to be different sets designed by different people)?
add_action( ‘wp_enqueue_scripts’, ‘enqueue_font_awesome’ );
function enqueue_font_awesome() {
wp_enqueue_style( ‘font-awesome’, ‘//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css’ );
}
The fonts just showed up, several hours later. So, maybe there is a delay when the code is changed? Anyway, it works now. Thanks
Hi!
That is because you have not cleared the cache, but cache expired now and you can see them.
Please – when do any type of changes, clear your cache to be sure everything is been visible properly.
Please let us know if we can do anything else for you, we will be more than happy to assist.
Cheers!
Basilis
That’s a great tip… I forgot about that! Thanks Basilis!