I realize that a few of you perusing this instructional exercise may have never utilized an symbol textual style some time recently. You will indeed be inquiring yourself, what precisely is an symbol text style? Icon textual styles are basically another way of showing symbols on your websites.

In the past, it was a common hone to utilize pictures as symbols. But utilizing pictures for symbols as a rule comes about in extra demands to the server. So to address this issue, architects have turned to icon textual styles.

An icon text style is precisely like a typical textual style. The as it were contrast is, rather than a letter mapped to a character or a Unicode range, you’ll have a image.

ABOUT FONT AWESOME ICONS

Font Awesome could be a wealthy collection of 400+ symbols. This library is totally free for both individual and commercial utilize.

In this instructional exercise, I am planning to appear you how to install and utilize Text style Magnificent symbol textual styles in WordPress. You’ll install a WordPress plugin to utilize symbol textual styles, or in the event that you’re a specialized individual, you’ll be able do it physically.

USING FONT AWESOME ICONS WITH A PLUGIN

Better Font Awesome may be a free and prevalent plugin (20,000+ dynamic introduces) to utilize FontAwesome symbol on your WordPress location.

This free plugin permits you to consequently coordinated the most recent accessible adaptation of Text style Great into your WordPress location, in conjunction with going with CSS, shortcodes, and TinyMCE symbol shortcode generator.

Login to your WordPress dashboard, go to Plugins > Include modern. Rummage around for “Better Text style Awesome”, introduce and actuate this plugin.

Now go to Settings > Way better Textual style Great to memorize almost essential settings. There are few fundamental settings. You’ll utilize minified CSS, cover up admin takes note and Way better Textual style Amazing can too endeavor to evacuate Text style Amazing CSS and shortcodes included by other plugins and themes.

You’ll exceptionally effortlessly include symbols to your posts and pages. Fair tap the Embed Symbol button and select your craved symbol to include in your post.

(There are numerous free elective plugins accessible at the WordPress plugin registry. AGP Font Awesome Collection has 10,000+ dynamic introduces, and Font Awesome 4 Menus has 30,000+ active introduces.)

USING FONT AWESOME ICONS MANUALLY

Now I will appear you how to utilize FontAwesome symbols on your WordPress site without any plugins.

Getting begun with Text style Great isn’t difficult. You’ll be able essentially glue a line of code within the head segment of your HTML record. But to utilize Font Awesome in WordPress we have a much more progressed work called Enqueuing. We are going utilize this work to enroll a Text style Great CSS document.

GETTING STARTED: CREATE A CHILD THEME

Child themes are a extraordinary beginning point to customize WordPress topics. With child subjects you’ll join co-author furthermore plugin into your topic or indeed code a custom landing page for items. For this instructional exercise, I have created a child topic. In case you’re a fledgling and don’t know almost WordPress child topics, studied this instructional exercise to memorize how to make a WordPress child topic.

We require as it were 3 records in our child subject. function.php, style.css and screenshot.png (optional).

Open your style.css file and add following code:

/*
 Theme Name:   DeveloperDrive Child
 Theme URI:    http://www.DeveloperDrive.com/
 Description:  A Twenty Sixteen child theme 
 Author:       Tahir Taous
 Author URI:   http://www.DeveloperDrive.com
 Template:     twentysixteen
 Version:      1.0.0
*/

Now go to WordPress dashboard and make enact child subject. Visit front conclusion of your site. You won’t see any fashion. Don’t stress we ought to enqueue the parent style-sheet.

ENQUEUING STYLES

By enqueuing styles and scripts, we will control where, when, and how each stylesheet and each script is called and what conditions each of them have. Enqueuing of the stylesheets and scripts is done from functions.php file.

We are utilizing Enqueue work to enroll parent and child theme’s stylesheets.

We too got to get Textual style Amazing symbols onto our location. The least demanding way to to incorporate Text style Magnificent on our location is to call the Bootstrap CDN stylesheet.

You can visit Font Awesome getting started page to learn more.

Visit the getting started page and scroll down. You will see following line of code.

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

As i said earlier, we will use the Enqueue function to include Font Awesome styles in our WordPress site. We need https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css url only. Open your child theme’s functions.php and add the following code.

<?php
	function theme_enqueue_styles() {

	    $parent_style = 'parent-style';

	    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );

	    wp_enqueue_style( 'my-child-fontawesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' );

	    wp_enqueue_style( 'child-style',
	        get_stylesheet_directory_uri() . '/style.css',
	        array( $parent_style )
	    );
	}
	add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
?>

To make beyond any doubt everything is working fine, visit the front-end of your location. In the event that you see any mistakes check all the code.

Now we have to be make beyond any doubt that textual styles are lined up. To see if the textual styles are lined up i am planning to utilize Chrome Designer instruments. To open Chrome Dev Apparatuses, right press any where on the screen, go to Assets tab > Outlines > LocalHost.

HOW TO USE FONT AWESOME

After you get up and running, you’ll put Textual style Magnificent symbols almost about anyplace with the tag. At that point, you have got to relegate them two classes. The

fa

class also a moment lesson, which ought to be the title of the symbol you need to include to your extend, for occasion

fa-home
fa-check

or any other icon name.

Add the taking after code anyplace on your WordPress location (Page, post or Gadget) and you you ought to see Text style Amazing symbols on your site.

<i class="fa fa-check fa-5x"></i>
<i class="fa fa-check fa-4x"></i>
<i class="fa fa-check fa-3x"></i>
<i class="fa fa-check fa-2x"></i>
<i class="fa fa-check"></i>
<hr>
<i class="fa fa-wifi fa-5x"></i>
<i class="fa fa-wifi fa-4x"></i>
<i class="fa fa-wifi fa-3x"></i>
<i class="fa fa-wifif fa-2x"></i>
<i class="fa fa-wifi"></i>
<hr>
<i class="fa fa-twitter  fa-5x"></i>
<i class="fa fa-facebook  fa-4x"></i>
<i class="fa fa-trello fa-3x"></i>
<i class="fa fa-whatsapp fa-2x"></i>
<i class="fa fa-youtube fa-2x"></i>

In sidebar gadget you’ll see Text style great symbols with distinctive sizes. I have too included a Check symbol to the current menu thing. WordPress permits you to effectively fashion your current dynamic menu thing. I have utilized taking after CSS to to fashion current menu thing.

li[class*="current-menu-item"] {
    background: rgba(35, 236, 152, 0.59);
    font-family: Georgia;
    padding-right: 15px;

}

li.current-menu-item a{
    text-transform: uppercase;
    position: relative;
    left: 20px;
    top: 0;
    color: green;
    background: #e3e3e3;
    font-family: Georgia;
}


li.current-menu-item::before 
    {
    font-family: 'FontAwesome';
    content: '\f00c';
    position: absolute;
    font-size: 120%;
    position: absolute;
    left: 1px;
    top: 5px;
    margin-right: 5px;
    color: green;
}

We have a list thing with a lesson of current-menu-item. And after that within the CSS, we’re utilizing the some time recently pseudo selector to say: hello, go ahead and show this specific character encoding, f00c, which, in this case, is the image for check, so it would appear the check symbol. Make beyond any doubt that in your CSS, that symbol textual style (FontAwesome) is being utilized for its textual style family.

I have moreover utilized distinctive foundation colors to highlight current menu thing list thing and interface.

Bear in intellect that for CSS stylesheets you’ll need to utilize Unicode and not the actual CSS course, To include any symbol on your pages, posts or widgets you’ll utilize Textual style Amazing classes.