Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active June 9, 2021 15:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/7be0e2e83df7de9971e0 to your computer and use it in GitHub Desktop.
Save srikat/7be0e2e83df7de9971e0 to your computer and use it in GitHub Desktop.
// Load Font Awesome
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' );
function enqueue_font_awesome() {
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' );
}
<i class="fa fa-phone"></i> +91 1234567890
.fa-phone {
font-size: 25px;
vertical-align: middle;
padding-right: 5px;
}
.menu-primary li a:before {
font-family: FontAwesome;
padding-right: 7px;
/*font-style: normal;
font-weight: normal;
text-decoration: inherit;*/
}
/* Home menu item */
#menu-item-1616 a:before {
content: "\f015";
}
/* Pages menu item */
#menu-item-1413 a:before {
content: "\f0e8";
}
/* Categories menu item */
#menu-item-1414 a:before {
content: "\f15b";
}
#meta-3 .widget-title:before {
font-family: FontAwesome;
padding-right: 7px;
content: "\f05a";
font-style: normal;
font-weight: normal;
text-decoration: inherit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment