If you don’t want to rely on Jetpack for font awesome you need to have the CSS files loaded. Best way (in my opinion) to do this is via the CDN.
I use the following:
// Add font awesome & bootstrap
function awesome_css() {
wp_enqueue_style("fontawesome", 'https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');
wp_enqueue_style("bootstrap3", 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css');
}
add_action( 'wp_enqueue_scripts', 'awesome_css' );
This goes into your functions.php file.
Then you have a few choices of how to add it. You can use the method you’ve referred to, or you can use the fontawesome cheat sheet
Refer to the examples on fontawesome for more info.
Related Posts:
- How to disable Jetpack modules such as Stats?
- Cannot activate Jetpack on my server
- Jetpack Infinite Scrolling For Multiple Columns On Same Page?
- Popular posts by view with Jetpack
- Gravatar Hovercards (Jetpack) jQuery error
- Jetpack – stats_get_csv period parameter
- Using stats_get_csv to return a list of popular posts by views with thumbnails
- How do I update the site URL used by Jetpack subscribe widget [closed]
- Isotope with Infinite Scroll
- Jetpack infinite scroll not working on Twenty Twelve [closed]
- Can’t connect to my WordPress website using Windows 8 app?
- What does this number represent in JetPack stats? [closed]
- I have a self hosted blog but now the WordPress.com stats plugin has stopped working
- jetpack suddendly stopped working [closed]
- Why I can’t modified jetpack default blank.jpg on og:image?
- How to remove WordPress’ Jetpack plugin completely? [duplicate]
- How do I remove quantcast from my sites?
- Customizing JetPack Publicize Sharing
- Jetpack infinite scroll not working on twentysixteen custom theme
- Change $content_width based on screen size (functions.php)
- Jetpack button location buffering [closed]
- Does Jetpack conflicts with load_template()?
- Hide Jetpack for Contributor [closed]
- How do i import email addresses into WordPress.com subscriptions? [closed]
- Hiding Jetpack Ads from users who are signed in?
- Jetpack Infinite Scroll – changing number of posts
- How to allow users to write jetpack custom post types? [closed]
- Missing Jetpack Contact Form button when running locally [closed]
- Why does Jetpack insert it’s script outside the tag?
- Updating shortlinks from staging [closed]
- Jetpack Publicize and Android
- How can I get the Jetpack Image plugin to open links in a new window? [closed]
- Infinite Scroll on Self-hosted WordPress [closed]
- How to remove Stats by jetpack dashboard widget?
- Publicize in Jetpack stopped working on Custom Post Type it works in Blog Posts
- Jetpack Top post widget (display post views)
- Unable to setup jetpack on my site
- Where does Jetpack store markdown?
- The plugin jetpack/jetpack.php has been deactivated due to an error: Plugin file does not exist
- Jetpack URL shortening, fixing after website URL change
- Infinite scroll function for Twenty Seventeen
- how to disable jetpack for non admins?
- Popular posts – based on pageviews
- Implementing backbone.js to retrieve category posts using JSON API
- Jetpack email sharing button to include image on email sent
- Is there a way to enable a Jetpack module via `functions.php`
- Pageview confusion [closed]
- Jetpack Infinite Scroll, Isotope and ImagesLoaded
- Force Jetpack to not use og:image tag for favicon / Site Icon [closed]
- Using Jetpack to track an Ajax powered blog [closed]
- Jetpack: Access visitor stats in templete
- Jetpack Running Locally [closed]
- how to change default icon of custom plugin?
- How do I set up the defualt page icon for admin menu?
- How to use a WordPress’ existing admin icon?
- Extending Genericons in WordPress
- Custom Loop and Infinite Scroll
- Is there a way to fire other functions from wp_insert_post
- Placeholders in Jetpack Contact Form [closed]
- Jetpack Blog Subscriptions on Multisite [closed]
- Remove apple-touch-icon link generated by WordPress
- Jetpack Infinite scroll conflicting with theme’s pre_get_posts custom posts_per_page
- How can I remove the new stats message? [closed]
- JetPack Infinite Scroll not working on custom theme
- How can a default site icon be set in customizer?
- Removing the main link to Jetpack from the menu
- stats_get_csv (WordPress Stats) to only display top posts (not pages)
- Add icon/badge next to posttitle of specific category
- Exclude Post Type from Jetpack Infinite Scroll
- How to insert icon in site title
- Jetpack Infinite Scroll – Add more than 7 posts each time?
- Dashicons and Pseudo :before
- Change description of my Jetpack facebook shared links [closed]
- Is it possible to remove subscription box from Jetpack stats page? [closed]
- Edit / Change Jetpack Mobile Theme [closed]
- How to edit original wordpress HTML source code and add icon?
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- wp_trim_words strips dashicons
- Icon over thumbnail according to post format
- Custom Fields Question
- Adding comments section to website integrated WordPress instance
- Does Jetpack store comments in local database also? [closed]
- After installing JetPack, can I delete the WordPress stats plugin?
- Hooked into wp_get_attachment_caption to add content to the default description; not working for jetpack slideshow. Why?
- Hover a css icon width other color inside wp_get_attachment_image
- Widget Style – Icon Type
- Uncaught TypeError: r is not a function
- Solved – Inserting content inside the WordPress loop
- Jetpack gallery shortcode with slideshow
- Why 2 home pages?
- Increase load-out-page speed
- Add disclaimer before certain posts and pages
- Jetpack Comments Change Placeholder Text
- Featured posts and the loop
- Issue on adding Icons to Custom Post Type
- How to delete Jetpack Widgets from the Widgets page in admin panel [closed]
- Why plugin’s icon for the menu not found?
- How To Add Class To Style Search Box
- Questions about using Disqus or Jetpack for comments [closed]
- What is the `post-status` icon handle when using `@wordpress/icons`?