---
title: "Cách cài fontawesome-pro-5.12.0 vào wordpress"
description: "Cách cài font awesome pro 5 cho wordpress...."
date: "2020-08-14"
author:
  name: "Nguyen Pham"
  role: "Xin chào. Mình thích lập trình và công nghệ. Đây là blog mình chia sẻ lại các kiến thức về lập trình, công nghệ."
  avatar: "http://0.gravatar.com/avatar/6fb61398e24046b34e13870dd6c357b9?s=128&d=mm&r=g"
category: "Programming"
tags: ["Programming"]
coverImage: "/blog/covers/cach-cai-fontawesome-pro-5-12-0-vao-wordpress.png"
featured: false
readingTime: "1 min read"
---

fontawesome là một bộ font và icon.

Cách cài vào wordpress:  
B1: Tạo Child theme  
B2: Copy file header.php ở thư mục theme cha vào child theme  
B3: Chèn đoạn mã sau.

```
<link rel="stylesheet" type="text/css" href="https://ndata1.imfast.io/design/ICON/fontawesome-pro-5.12.0/fontawesome-pro-5.12.0-web/css/all.css">
```

Sau khi copy như thế này là đã thành công. Chú ý phần url dẫn tới file all.css nên để đường dẫn tuyệt đối.

```
...
<head>
     ...
    <?php wp_head(); ?>
    <link rel="stylesheet" type="text/css" href="https://ndata1.imfast.io/design/ICON/fontawesome-pro-5.12.0/fontawesome-pro-5.12.0-web/css/all.css">
</head>
...
```

Note:  
Nêu sau khi thực hiện các bước trên mà vẫn lỗi thì tải thư mục webfonts vào thư mục của child theme.
