Cách thêm font chuẩn vào wordpress

  1. Download load font về rồi đặt vào mục fonts trong themes.
  2. Nhúng font vào trong file css bằng thuộc tính @font-face . Chú ý để src cho đúng.
@font-face {
  font-family: myFirstFont;
  src: url(sansation_bold.woff);
  font-weight: bold;
}
//Hoac
@font-face {
    font-family: 'Josefin Sans';
    src: url('../fonts/JosefinSans-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
}

3. Sử dụng font thôi. ví dụ như sau:

.title-box  .section-title span{
	font-family: 'Josefin Sans'; font-style: normal;
}

Done

Leave a Reply

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