Skip to main content

Add Custom Fonts to Kirki customizer

You want to add Custom Fonts to Kirki Customizer ? This article, I will guide you how to do that. Very simple and fast.

You can add the fonts to the parents theme directly or child theme. I recommend that you should deploy in child theme. Let’s try steps by steps:

1. Add custom fonts to Kirki Customizer

You can add custom fonts to the Typography dropdown in the WordPress customizer by adding this filter to functions.php file of the parents theme (or child theme).

  • label: name that gets displayed in the typography dropdown
  • variations: all font weights you want to include as an array
  • stack: css font-family attribute

Available variations

2. Adding custom fonts to your website

You’ve already added your own fonts to WordPress Typography dropdown. Now you also need to add the fonts to your website.

If your font is not ready for web use, you can use a webfont generator like font squirrel.

Note: The fonts you’re creating must be legally eligible for web embedding!

Step 1. Create a folder “fonts” in the parents theme (or child theme) and upload your font files (.woff, .woff2, etc.) to the folder “fonts” via FTP.

Add custom fonts to Kirki Customizer
Add custom fonts for WordPress Customizer using Kirki

Step 2. Load your fonts from style.css file of your theme (child theme) file, using the @font-face method.

Done!

You have successfully added the custom font to your website and now select it from the Typography in the WordPress customizer.

Have any questions? Please comment below.

Add Custom Fonts to Kirki customizer
4.4 (87.5%) 8 vote[s]