Home Forums WoodMart support forum Missing icons/fonts using WPML with different domains

Missing icons/fonts using WPML with different domains

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #604746

    david
    Participant

    My site is installed under example.de. I am using WPML to translate my site into English. For the english content I am using a .com domain.

    I have created a test page. When I translate it and visit the english version, some icons are missing and I get the following errors in the console:

    Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf https://www.example.de/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=7.6.0. (Grund: CORS-Kopfzeile ‘Access-Control-Allow-Origin’ fehlt). Statuscode: 200.

    downloadable font: download failed (font-family: “woodmart-font” style:normal weight:400 stretch:100 src index:0): bad URI or cross-site access not allowed source: https://www.example.de/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=7.6.0

    #604870

    Luke Nielsen
    Keymaster

    Hello,

    Is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?

    Kind Regards

    #606009

    david
    Participant

    Hi Luke,

    sorry for my late reply. I did not get any notification.

    I could fix the issue with the following htaccess code:

    <ifmodule mod_headers.c>
    	Header set Access-Control-Allow-Origin "https://www.example.com"
    </ifmodule>

    Do you see any problems with this solution?

    And for some reason, when I click on the language switcher to see the translated page, there is an url parameter like “?xdomain_data=” appended. Is that the intention? And can I deactivate it?

    Thank you and kind regards,
    David

    #606032

    Luke Nielsen
    Keymaster

    Hello,

    1. If that solution works, then it’s okay.

    2. Did you check how it works on the default theme?

    Thank you for your time.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)