Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 1 reply, has 2 voices.

Last updated by Marsel Nikolli 1 year, 8 months ago.

Assisted by: Marsel Nikolli.

Author Posts
November 16, 2023 at 4:37 pm #14829275

matejJ-4

I am trying to: rewrite my headers in Spanish and use the same custom fonts used in English and I can´t see the option to use them

Link to a page where the issue can be seen: es.bistronomy.net

I expected to see: the same headers font as in hidden link

I do not even have option of the font i need in second language

Screenshot 2023-11-16 at 17.36.41.png
November 17, 2023 at 9:03 am #14832737

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you today.

I visited your website and I could see CORS errors in the console (see screenshot).
CORS stands for Cross-Origin Resource Sharing, basically you're trying to access a resource on your bistronomy.net domain from your es.bistronomy.net domain.

Could you please try to add the following to your .htaccess file:

# fix CORS error for fonts
<FilesMatch ".(eot|otf|ttf|woff|woff2)">
    Header always set Access-Control-Allow-Origin "*"
</FilesMatch>

Note: Please make sure you have a full backup before making any changes to the .htaccess file.

Let me know if this works out for you.

Kind regards,
Marsel

corss-error.png

The topic ‘[Closed] custom font does not work in second language’ is closed to new replies.