Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The font is not working properly on my other domain being translated.

Solution:
Please set the following rule inside your .htaccess file:

Header set Access-Control-Allow-Origin "https://my-translated-domain.com"

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by yohannJ 2 weeks ago.

Assisted by: Andreas W..

Author Posts
June 18, 2024 at 4:22 pm #15750111

yohannJ

Also the font is not working properly on my other domain being translated.

Here is the answer from my host rocket.net:
"Unfortunately we do not support what you're trying to do. You're using one installation wtih multiple domains and trying to share assets between them.

At this time, our platform does not support CORS on fonts/static assets due to how our CDN caches items.

Each domain MUST load assets from their own URL."

June 19, 2024 at 2:09 am #15751555

yohannJ

I managed to solve this font issue using this code in the .htaccess:

Header set Access-Control-Allow-Origin "hidden link"

yohannJ confirmed that the issue was resolved on 2024-06-19 02:09:43.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.