- Trạng thái
- Đã giải quyết
- Plugin/giao diện liên quan
- Divi
Tổng quan về lỗi
Các biểu tượng không hiển thị chính xác trong Divi Builder.
Khi bạn sử dụng Divi builder và thêm module Blurb với “Icons”, phông chữ biểu tượng bị ghi đè bởi phông chữ biểu tượng OTGS. Vì vậy, các biểu tượng sẽ không hiển thị chính xác.
Giải pháp tạm thời
Mở tệp /functions.php và ngay sau:
add_action( ‘after_setup_theme’, ‘et_setup_theme’ );
Thêm:
function wpml_icon_fix() {
echo '<style type="text/css">.et-pb-option .et_font_icon li:before { font-family: "ETmodules"!important; content: attr(data-icon)!important; speak: none!important; font-weight: normal!important; font-variant: normal!important; text-transform: none!important; line-height: 1!important; -webkit-font-smoothing: antialiased!important; }</style>';
}
add_action( 'admin_head', 'wpml_icon_fix' );