how to change fonrs for Indian reqgional language?

Google and wordprees provides 100s of cool fonts for English. How do I add a new font in a language that is not English.

Google and wordprees provides 100s of cool fonts for English. How do I add a new font in a language that is not English. (In my case Kannada). Are there any plugins to add fonts?

Google and wordprees provides 100s of cool fonts for English. How do I add a new font in a language that is not English. (In my case Kannada). Are there any plugins to add fonts?

Share Improve this question asked Aug 10, 2019 at 8:14 TrectTrect 1537 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This is pretty easy, and you can follow along with this tutorial How to Add Custom Fonts in WordPress specially the way under the heading Adding Custom Fonts in WordPress Using CSS3 @font-face :

The most direct way of adding custom fonts in WordPress is by adding the fonts using CSS3 @font-face method. This method allows you to use any font that you like on your website.

First thing you need to do is download the font that you like in a web format. If you do not have the web format for your font, then you can convert it using the FontSquirrel Webfont generator.

Once you have the webfont files, you would need to upload it on your web hosting server.

The best place to upload the fonts is inside a new “fonts” folder in your theme or child theme‘s directory.

You can use FTP or File Manager of your cPanel to upload the font.

Once you have uploaded the font, you need to load the font in your theme’s stylesheet using CSS3 @font-face rule like this:

@font-face {
font-family: Arvo;  
src: url(http://www.example/wp-content/themes/your-theme/fonts/Arvo-Regular.ttf);  
font-weight: normal;  
}

Don’t forget to replace the font-family and URL with your own.

After that you can use that font anywhere in your theme’s stylesheet like this:

.h1 site-title { 
    font-family: "Arvo", Arial, sans-serif; 
 }

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745253817a4618836.html

相关推荐

  • how to change fonrs for Indian reqgional language?

    Google and wordprees provides 100s of cool fonts for English. How do I add a new font in a language that is not English.

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信