Tagged: wpml
Dear Support
I’m using WPML for translation together with it’s domain based language switching [e.g. http://www.dom.com is EN, http://www.dom.de is DE]. IE wont load the css-fonts because of cross-domain restrictions
Since you provide per-language template settings – which works great by the way – it would be necessary to have the header-domain for all the css/js ressources beeing editable too.
Or is there a better solution?
Update: I added a wildcard to the Access-Control-Allow-Origin Header for the font types and it’s working now. but thats not the desirable way..
Hey!
Tbh I think it’s up to WPML to adjust the domain/url path based on the selected language. We use the standard get_template_directory_uri() wordpress function: http://codex.wordpress.org/Function_Reference/get_template_directory_uri to load the resources. It’s not our job to change the uri based on the selected language but the WPML plugin must change it based on the plugin settings. Your best bet is to report it as a bug to the WPML developers. If you need a quick fix you can try the code from this article: http://www.wp-code.com/wordpress-snippets/how-to-make-sure-the-correct-domain-is-used-in-wpml/ .
Best regards,
Peter
Hi Peter, thanks for your reply!
Best regards,
Linard