Reply To: Font Awesome Version

Home Forums WordPress Themes – Premium Flat Responsive Font Awesome Version Reply To: Font Awesome Version

#57689
Bidur
Moderator

Hello Ellen,
You can manually update font-awesome icons.
1. Go to font-awesome
2. You can find Downlaod font awesome free button, get the download.
3. Use your child theme to create a css directory as in parent theme and add fontawesome.min.css file from the downloaded package inside it.
4. Now you need to enqueue it from your child theme; open functions.php file inside flat-responsive child theme
5. For instance; Take reference from the function as follows;

<?php 

 function flat_responsive_child_enqueue_scripts_styles() {
    wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style('font-awesome1', get_stylesheet_directory_uri(). '/css/fontawesome.min.css');
}
  add_action( 'wp_enqueue_scripts', 'flat_responsive_child_enqueue_scripts_styles');
 
  function parent_dequeue_fontawesome(){
     wp_dequeue_style('font-awesome');
}  
  add_action( 'wp_enqueue_scripts', 'parent_dequeue_fontawesome',11); 

Let us know.
Thanks!

  • This reply was modified 2 years, 5 months ago by Bidur.