Add Font Awesome to WordPress Without Plugin | Firhma.com

Add Font Awesome to WordPress Without Plugin

Font Awesome is an open source project with over 5000 Icons divided into 50 categories. They have a free and a pro version with more features and icons. You can change the size and color of any icon using CSS. You can use Font Awesome on many CMS including WordPress for free. This is how to add Font Awesome to WordPress without a plugin.

Add Font Awesome to WordPress Without Plugin

 

Add Font Awesome to WordPress with File Manager

  1. Login to your cPanel or hosting dashboard
  2. Open the file manager
  3. Go to your site WordPress files, usually located in public_html
  4. Open wp-content > then themes
  5. Find and open the theme file you are currently using. For example, twentynineteen
  6. Edit functions.php, paste the code and save

 

Add Font Awesome to WordPress From your WordPress Dashboard

  1. Login to your WordPress Dashboard
  2. Go to Appearance > Editor
  3. Select theme to edit
  4. Click on Theme Functions (functions.php)
  5. Paste the code.
  6. Update file

Copy and paste the code to your file here

add_action( 'wp_enqueue_scripts', 'tthq_add_custom_fa_css' );

function tthq_add_custom_fa_css() {
wp_enqueue_style( 'custom-fa', 'https://use.fontawesome.com/releases/v5.0.6/css/all.css' );
}

 

Now you can have Font Awesome icons to any page, post, custom post, and menu. Visit Font Awesome to get the list of available icons.

 


Useful links |Blog | Tutorials | Scam alerts | Report a scam

Don`t copy text!