not working with WPML and different domains
-
Right now this plugin doesn’t work with WPML and different domains.
It tries to load the fonts.css with the main domain and also in the fonts.css it tries to load the font files with the main domain.
Better would be to load the fonts.css and font files without the prefix in the domain.
Switching the language in WPML and creating another setting for the directory or CDN doesn’t work either. This seems to work only for multisite websites but not with WPML and multi domain settings.
The Browser forbids to load the fonts.
“Referrer Policy: no-referrer-when-downgrade”
Because of cross domain loading.A quick fix is to add the following into the .htaccess file:
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|fonts.css|)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch>
This allows to load the fonts.css and font files from another domain.
What I wish is, that you should load the fonts.css and font files without a domain.
Or allow to have different settings with WPML and multi domains setting.Otherwise I like the plugin very much. Thank you very much.
- The topic ‘not working with WPML and different domains’ is closed to new replies.