How to correctly use WordPress icon font: Get the best performance (2022)

Today, the website is about visual impact, and the WordPress icon is a must for this goal to achieve this goal. A good way.

In the early web design, Windings and Webdings are the closest icon fonts we have. These fonts are replaced by conventional letters and numbers with basic symbols such as arrows and star numbers. Although they are a little clumsy and are not always visually attractive, they were completely enough at the time.

Although you can still find Wingdings and Webdings (just roll to browse the fonts available in Microsoft Word or Google Pages, you will find them), but most people now prefer to use the current available update icons. These are much more advanced, in fact, there are thousands of options, and new ones have been appearing.

This article explains what the WordPress icon and font are, where can they find them, and how to quickly and easily add them to your website content.

What is the wordpress icon and how are they used?

We all know what text fonts are: files containing letters and numbers are set in specific ways, such as Calibri, Arial, New Times Roman, Helvetica, etc.

Similarly, the icon font is a file containing the graphic symbol (icon) group instead of characters such as the letter or number. Icons usually include things related to modern life, such as social media logo, shopping cart symbols, email \”envelope\”, telephone, etc. Oh, don’t forget those inconspicuous emoticons!

The advantage of the WordPress icon for images is that they are vector graphics. This means that they can expand infinitely without reducing quality -you can magnify them to the size you want without the problem of pixels. In addition, their colors are easy to change, and compared with other image types, they are lightweight in terms of code.

Website designers particularly like iconic fonts, because they can use CSS like ordinary text to set them. style. icons are usually used to replace text, because they:

less space occupied than text, which is very important for mobile devices.

It is usually self -evident and can be understood by non -native speakers.

  • Provide a larger visual impact than text
  • It makes the website look easier, because a large number of text websites are not only boring, but also difficult to read.
  • For example, e -commerce websites often use shopping cart symbols because it can be identified immediately. Similarly, the envelope icon is usually understood as \”sending our electronic mail\”, and the telephone symbol is self -evident. If you look at the upper right corner of the WPLIFT website, you will notice the magnifying glass icon -click it to call up the search bar.

The article continues below

[

123]

Where can I find icons and icon fonts?

There are many available WordPress icon font sources, including free and advanced. This is just a small part of it:

Font is really stick FONT AWESOME may be the most famous source of icon. This is not a coincidence, because they currently provide more than 2,000 free and more than 16,000 professional editions in 68 categories -they even have an animated version! More importantly, they are constantly adding new.

FONT AWESOME calls their icon fonts \”kit\”. You will get a tool package and access all the free icons in the free plan. You can upgrade to \”Pro\” for only $ 99 a year, including 20 tool packages and access permissions for free and advanced icons.

Use FONT AWESOME to easily find all the icons you need. In fact, even the free library may be enough to meet the needs of many applications. They also have a very detailed help part that can help you make full use of their icons. Font Awesome 网站截图

Try the font is really stick

Feng Tylo Fontello not only allows you to use a ready -made open source icon library to build icons, but also allow you to add your own custom SVG icon or image. In addition, Fontello has another detailed help part to guide you to create icon.

Fontello’s best point is that it is completely free.

Try Feng Tyro

Aimon Fontello 网站截图

icomoon allows you Icons, in addition, you can also import your icon. From this, you can create your own icon fonts in your WordPress website.

Although IComoon has a free plan, it will store everything in your browser. The disadvantage of this is that every time the browser cache is cleared, everything will be lost. You can avoid this problem by buying a payment plan, and the plan is stored in the \”project\” of your account. In addition, the paid plan (from 9 US dollars per month) includes access to high -level icons, and provides you with greater flexibility when creating icons.

Icomoon网站截图

The article continues below

123]

Try iComoon

byte size

Bytesize may only contain 101 icons, but this makes it ultra -lightweight, when the reduction is only 11.7kb or SVGZ, it is 3.2KB. In addition, the weight, color and size of each icon can be adjusted, and you can choose between circular or square edges.

Although there are thousands of icons provided by FONT AWESOME et al., The Bytesize icon covers many modern daily applications. The most important thing is that it is free. SiteGround托管

Try the byte size

The method of using WordPress icon fonts

Now, I will tell you some fast fast Methods to easily add icon fonts to WordPress content. Bytesize网站截图

In order to make beginners friendly, I try to avoid using the method of using your code, CSS, or your function.php file.Correct, it may cause severe damage to your website.

Option 1 -Use the FONT AWESOME icon contained in Elementor If you use it Elements, you will get real enjoyment because the page constructifier has integrated the Font Awesome icon. This means you can access about 1,500 icons for free. In addition, if you subscribe to FONT AWESOME Pro, you can also access these contents from Elementor.

To access the icon, you only need to enter \”icon\” in the element search bar. Next, drag the icon block to any position you need in the content. Then, call the icon library by clicking the icon in the \”Edit icon\” panel:

By adjusting the \”Advanced\” and \”style\” options in the icon editor The settings in the card, you can customize the icon according to your preference. In addition, you can upload your SVG icon.

Option 2 -Use the icon font provided by Gutengbao

By default Gutenberg only contains some social icons. You can access them by entering the \”icon\” in the \”block\” search bar:

The article continues below [123 ] GIF 显示 Elementor 中的图标块在 WordPress 中被拖放

See the content of the installation below:

Click any of the new blocks that will be installed, you can access many icon fonts from it:

Woocommerce 托管 ]

You can customize the icon. First click the gear icon in the upper right corner of the screen. Next, click the \”Prevent\” tab, and then adjust the various settings displayed according to your preference:

WordPress 管理面板的屏幕截图,显示了古腾堡中图标块的位置 Options 3 -Use the WordPress icon font plugin

[

[ 123] Several WordPress plug -ins for helping you add the icon to your content.

One of the most popular fonts is FONT AWESOME, for meThey brought the same person to the same person who brought the FONT AWESOME icon. However, I don’t intend to discuss that, because I find that setting and using it are painful. In addition, there are many FONT AWESOME plug -in tutorials on the Internet. 显示可以在 WordPress 中添加到 Gutenberg 的图标块的屏幕截图

GIF 展示如何在 Gutenberg 中向 WordPress 添加图标

In contrast, I will talk about WP FONT AWESOME. This free plug -in allows you to use simple simplicity to add and customize the FONT AWESOME icon. After installation and activation, no configuration is required. In addition, unlike FONT AWESOME plug -in, you don’t even need to register on the Font Awesome website to use it.

屏幕截图显示使用 Gutenberg 嵌入到 WordPress 帖子中的相机图标,以及自定义选项的位置 There are three simplified codes in WP FONT AWESOME:

Pure color style: [wpfa5s icon \u003d \”home\” size \u003d \”3x\” color \”#336699 ″]

123] Conventional style (supported by limited icons) [wpfa5r icon \u003d \”user\” color \u003d \”red\”]

Brand: [wpfa5b icon \u003d \”wordpress\” size \u003d \”5x\” color \u003d \”#3B5998 ″ ].

You can change the icon type, size, and color by replacing the content in each group quotation marks. For example, I will create three icons, as shown below:

Pure -color car icon, a solid car icon,, a solid car icon, a solid car icon,, a solid car icon, a solid car icon,, a solid car icon, a solid car icon,, the pure color car icon,, the solid car icon, the pure color car icon,,, the pure color car icon, the pure color car,, The size is 10 times, the color is orange

  • address card icon, the size is 5x, the color is red
  • Federal express logo, the size is 3X, the color is purple, but this time it is ten for ten Hexagonal color code.
  • Below is a screenshot, which shows the short code inserted into the post using a short code in Gutenberg:

Three completion The icon looks like this: To obtain the hexadecimal code of the color, you can use htmlcolorCodes.com and other websites. If you want to choose the color from the image, use things like ImageColorPicker.com to get the corresponding hexadecimal code. You can find the name of each icon on the FONT AWESOME website, although you can usually guess itMany of them.

WP FONT AWESOME allows you to place the icon almost anywhere on the website, including menu, small components, posts, pages and title.

icon font and website speed

使用 WP Font Awesome 插件的示例 WordPress 帖子中的图标短代码的屏幕截图

There is a disadvantage to use the icon font on your website: the additional bloating they brings may affect the speed.

The reason for this is that if you want to link to the external library or use a plug -in, you usually the entire icon font library. This is not a very effective use of resources, especially if you only use a few icons of hundreds of fonts. 屏幕截图显示了使用简码和 WP Font Awesome 插件嵌入到 WordPress 帖子中的完成图标

Another reason for the icon font to affect the performance of the site is that loading from multiple CDNs is obviously slower than loading from one CDN. This is because multiple HTTP/2 connections and a large number of DNS search, all of which will greatly slow down.

If you are very worried that the icon font will slow down your website, then install them locally on your own CDN or WordPress host server may be the best choice. This will allow you to choose only the required icons, which greatly reduces the size of the overall file. In addition, you will be able to choose icons from several different icon libraries.

Visit the WPLift article \”

How to get a local google font (or other fonts in WordPress!)\” To obtain a step -by -step tutorial on how to perform this operation. Conclusion

In fact, there are thousands of WordPress icons available, covering so many genres and applications. They are very suitable for your website to increase visual impact, and at the same time reduce text confusion to maximize the mobilization of mobile devices. In addition, they can help other language users more easily understand and browse the website. Do you use icon fonts on the content of the WordPress website? If so, what method do you use and have you tried other methods before? As always, I want to hear your feedback.

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *