• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daan from Daan.dev

    (@daanvandenbergh)

    Hi @senders!

    I’ve been trying to contact WPML to try and see if we can collaborate on making my plugins. But since it’s a premium plugin (and I’m not going to by it, just to see if it’s even possible :)) I don’t know how willing they’ll be to hand me a developer’s licence, or something like that.

    I’ll keep you posted!

    Thread Starter senders

    (@senders)

    Hi @daanvandenbergh ,
    if not I could install you a dev server with wmpl if you want.

    Greetings from Germany

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘not working with WPML and different domains’ is closed to new replies.