Resolved
Reported for: WPML Multilingual CMS 3.3.5
Overview of the issue
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' );
This did not work for me. I got errors!
Hi, sorry for that, I’ll test and contact you tomorrow with the results.
I have fixed and tested the above snippet – there was a single quote (‘) missing – please try now – it should work correctly.
Hi Amit,
i have the same issue and cannot fix it.
Enfold 3.8
WPML 3.6.3
Wordpress 4.7.3
When the Enfold theme is active and “A different domain per language” option is chosen, the theme styles are not being loaded.
Kind regards
Frank
Your workaround is not working.
Hi Frank,
We are retesting the newest Enfold version this week, I will be testing your issue tomorrow and will update you here.
Cheers!
Amit
Hi Frank,
I am sorry – we can not replicate your issue with the latest version of the Enfold theme, are you sure you have all your plugins updated? – If you do please open a ticket with this issue in our support forum: https://wpml.org/forums/forum/english-support/ so we can debug your site and see what’s causing this.
Thanks!