Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/taynamvn/domains/taynamsolution.vn/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/taynamvn/domains/taynamsolution.vn/public_html/wp-includes/functions.php on line 6121
Hướng dẫn sửa lỗi font ở tên miền phụ - pointer domain - Tây Nam Solutions

Hướng dẫn sửa lỗi font ở tên miền phụ – pointer domain

Khi ta thêm một tên miền phụ (pointer domain) thường sẽ bị lỗi font, ví dụ website có nhúng fontawesome thì tên miền chính có thể các font sẽ hoạt động, tên miền phụ thì không hoạt động, ở trình duyệt Chrome chỉ hiển thị hình vuông, còn Firefox sẽ hiển thị kí tự đặc biệt thay vì icon như bình thường.

access-to-font-at-origin-has-been-blocked-by-CORS-pOLICY-no-access-control-allow-origin-1
access-to-font-at-origin-has-been-blocked-by-CORS-pOLICY-no-access-control-allow-origin-1

Các giải quyết được vấn đề này là chỉnh sửa file .htaccess

Thêm đoạn này vào file .httacess của bạn

< IfModule mod_headers.c >
< FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$” >
Header set Access-Control-Allow-Origin “*”
</ FilesMatch >
</ IfModule >

Lưu ý bỏ dấu cách cho đúng với cú pháp htaccess

Hoặc xem file tại đây

htacess-fix-loi-font-pointer-domain
htacess-fix-loi-font-pointer-domain