I am using WPML “A different domain per language” and Enfold child theme.
In native language enfold theme is working correctly but in translation the theme style is completely broken…
Anyone knows how to fix this?
This tip from WPML has NOT helped me…
When the Enfold theme is active and “A different domain per language” option is chosen, the theme styles are not being loaded.
Workaround
Add the following code to the Enfold theme functions.php file:
function wpml_enfold_fix_resources_uri() {
remove_filter (‘stylesheet_directory_uri’, ‘avia_wpml_correct_domain_in_url’);
remove_filter (‘template_directory_uri’, ‘avia_wpml_correct_domain_in_url’);
}
add_action( ‘init’, ‘wpml_enfold_fix_resources_uri’ );
Hi Rikard,
no, this solution did NOT worked.
Maybe you have any other idea?
Hi,
make sure to use newest WP and theme version (Enfold v4.0.2). Deactivate any other plugins but WPML to check if one is causing this issue.
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
Best regards,
Andy