Image default
Themes

How to Easily Add Icon Fonts in Your WordPress Theme

When we look at WordPress websites using regular image files for their icons, we can’t help but think they’re missing out on something better.

That’s because icon fonts are the smarter choice – they load quicker, look sharper on any screen, and you can easily change their size or color with just a few clicks.

Many website owners still use old-fashioned image icons because they haven’t heard about the easier options out there. Thanks to modern icon fonts, you can now add great-looking icons to your site without slowing it down.

In this guide, we’ll show you the simplest ways to add icon fonts to your WordPress theme. We’ve tested these methods ourselves, and they work great with any theme you might be using

What are Icon Fonts and Why You Should Use Them?

Icon fonts contain symbols or small pictures instead of letters and numbers.

You can use these icon fonts in lots of different ways. For example, you can use them with your shopping cart, download buttons, feature boxes, giveaway contests, and even WordPress navigation menus.

In fact, WordPress uses font icons in its admin area.

Most visitors will immediately understand what a commonly-used icon means, so they can make your site easier to navigate. They can also help you create a multilingual website since most people will understand common icon fonts no matter what language they speak.

Compared to image-based icons, font icons load much more quickly so they can boost WordPress speed and performance.

There are several open-source icon font sets that you can use for free, but in this guide, we’ll be using Font Awesome since it’s the most popular open-source icon set.

With that said, let’s look at how you can easily add icon fonts to your WordPress theme. Simply use the quick links to jump straight to the method that you want to use:

Method 1. Adding Icon Fonts Using a WordPress Plugin (Free and Easy)

The easiest way to add custom icon fonts to WordPress is by using the Font Awesome plugin.

This plugin allows you to use free icon fonts in your pages and posts without modifying your WordPress theme files. You’ll also get any new Font Awesome icons automatically every time you update the plugin.

The first thing you need to do is add Font Awesome to WordPress. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you can add a Font Awesome icon to any shortcode block. Simply open the page or post where you want to show the icon font, and then click on the ‘+’ icon.

You can now search for ‘Shortcode’ and select the right block when it appears.

With that done, you can add any Font Awesome icon using the following shortcode:

Simply replace “rocket” with the name of the icon that you want to show. To get the name, head over to the Font Awesome library and click on the icon that you want to use.

In the popup that appears, go ahead and click on the icon.

Font Awesome will now copy the name to your clipboard automatically.

With that done, simply paste the name into the shortcode. You can now click on ‘Publish’ or ‘Update’ to make the icon font live.

Sometimes, you may want to show an icon font inside a block of text. For example, you may need to display a ‘copyright’ symbol after a brand name.

To do this, simply paste the shortcode inside any Paragraph block.

You can then use the settings in the right-hand menu to customize the icon, similar to how you customize options for text blocks. For example, you can change the text color, font size, and background color in WordPress.

WordPress will turn the shortcode into a Font Awesome icon and show it alongside your text.

Another option is to add the shortcode to any widget-ready area.

For example, you can add a Shortcode block to your site’s sidebar or similar section.

For more information, please see our guide on how to use shortcodes in your WordPress sidebar widgets.

You can even add the icon shortcode to columns and create beautiful feature boxes.

For detailed instructions, see our guide on how to add feature boxes with icons in WordPress.

Many websites use icon fonts in their menus, to help visitors find their way around. To add an icon, either create a new menu or open an existing menu in the WordPress dashboard.

For step-by-step instructions, check out our beginner’s guide on how to add a navigation menu in WordPress.

On the Appearance » Menus page, click on ‘Screen Options’ and then check the box next to ‘CSS Classes.’

With that done, simply click to expand the menu item where you want to show the icon.

You should now see a new ‘CSS Classes’ field.

To get an icon’s CSS class, simply find the icon font on the Font Awesome website and give it a click. If you want, then you can change the icon’s style by clicking on the different settings.

In the popup, you’ll see an HTML code snippet. The CSS class is simply the text between the quotation marks. For example, in the following image, the CSS class is fa-solid fa-address-book.

Simply copy the text inside the quotes, then switch back to the WordPress dashboard.

You can now paste the text into the ‘CSS Classes’ field.

To add more icon fonts, simply follow the same process described above.

When you’re happy with how the menu is set up, click on ‘Save.’ Now, if you visit your WordPress website, you’ll see the updated navigation menu.

Method 2. Using Icon Fonts with SeedProd (More Customizable)

If you want the freedom to use font icons anywhere on your site, then we recommend using a page builder plugin.

SeedProd is the best drag-and-drop WordPress page builder on the market and has over 1400 Font Awesome icons built-in. It also has a ready-made Icon block that you can add to any page using drag and drop.

Several of our partner brands have created their entire websites using it, and they’ve had great experiences. For details, see our SeedProd review.

The first thing you need to do is install and activate the plugin. For more details, see our beginner’s guide on how to install a WordPress plugin.

Upon activation, go to SeedProd » Settings and enter your license key.

You can find this information in your account on the SeedProd website. After entering the license key, go ahead and click the ‘Verify Key’ button.

Next, you need to visit SeedProd » Pages and click on the ‘Add New Landing Page’ button.

Now, you can choose a template to use as the basis for your page. SeedProd has over 350+ professionally designed templates that you can customize according to your WordPress blog or website’s needs.

For example, you can create a viral waitlist landing page, a squeeze page, or even a custom 404 error page to keep users engaged.

To select a template, hover your mouse over it and then click the ‘Checkmark’ icon.

We’re using the ‘Ebook Sales Page’ template in all our images, as it’s perfect for selling digital products. However, you can use any design you want.

Next, go ahead and type in a name for the custom page. SeedProd will automatically create a URL based on the page’s title, but you can change this URL to anything you want.

When you’re happy with the information you’ve entered, click on the ‘Save and Start Editing the Page’ button.

Next, you’ll be taken to the SeedProd drag-and-drop page builder, where you can customize the template.

The SeedProd editor shows a live preview of your design to the right and some block settings on the left.

The left-hand menu also has blocks that you can drag onto your design.

You can drag and drop standard blocks like buttons and images or use advanced blocks such as the contact form, countdown, social media sharing buttons, and more.

To customize any block, simply click to select it in your layout.

The left-hand menu will now show all the settings you can use to customize that block. For example, you can often change background colors, add background images, or change the color scheme and fonts to better match your brand.

To add an icon font to the page, simply find the ‘Icon’ block in the left-hand column and then drag it onto your layout.

SeedProd will show an ‘arrow’ icon by default.

To show a different Font Awesome icon instead, simply click to select the Icon block.

In the left-hand menu, hover your mouse over the icon and then click on the ‘Icon Library’ button when it appears.

You’ll now see all the different Font Awesome icons that you can choose from.

Simply find the font icon that you want to use and give it a click.

SeedProd will now add the icon to your layout.

After choosing an icon, you can change its alignment, color, and size using the settings in the left-hand menu.

You can also add a link to the font icon, by typing into the ‘Link’ field in the left-hand menu.

Another option is to use SeedProd’s ready-made Icon Box.

This allows you to type in some text and then show a font icon next to it, which makes it a great choice for feature boxes.

Simply find the Icon Box in the left-hand menu and drag it onto your layout.

You can then click to select the block and change the icon by following the same process described above.

After that, you can type in the header and body text.

You can also change the block’s padding and margin, add CSS animations, and more by selecting the ‘Advanced’ tab.

You can continue working on the page by adding more blocks and customizing those blocks in the left-hand menu.

When you’re happy with how the page looks, click the ‘Save’ button. You can then select ‘Publish’ to make that page live.

Alternative: Use SVG Icons

Another way to add icon images to WordPress is using SVG icons. Short for scalable vector format, it’s a commonly used image format for vector graphics.

Many people use SVG vector icons over icon fonts when they want to add multiple colors to their icons. These files are also known to be more SEO-friendly and require only fewer server requests to load than other image icons.

If you want to learn more about SVG, you can check out our step-by-step guide on how to add SVG image files in WordPress.

We hope this tutorial helped you learn how to add icon fonts to your WordPress theme. You can also go through our guide on the best WordPress theme builders and how to change fonts in your WordPress theme.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Related posts

How to Create a Custom Page in WordPress

admin

How to Add Load More Posts Button in WordPress

admin

How to Easily Create a Custom WordPress Theme (Without Any Code)

admin

Leave a Comment