How to Use Icon Fonts in WordPress Post Editor (NO HTML Required)


WordPress.org
Joann Townsend

For any issues that appear within WordPress core, please create a new ticket on trac. Use the “administration” component and the “UI” focus when creating the new ticket, and be sure to include “Dashicons” somewhere in the text of the ticket.

How to Use Icon Fonts in WordPress
Colleen Stanley

Subsequently, the .ZIP file is unzipped. The folder “fonts”, which contains the required fonts, is uploaded to the root index of the active theme via (S)FTP. The “font-awesome.css” is taken out of the folder “css”. The data paths to the fonts in the fonts folder still need to be adjusted to (example) url(‘fonts/fontawesome-webfont.eot?v=4.5.0′);. Then, the CSS is placed in the theme’s root index of the theme and referenced in its header. This happens due to the following entry in the theme’s functions.php:

Be the first to comment

Leave a Reply

Your email address will not be published.


*