Resolved
Overview of the issue
It is not possible to save the setting for the language switcher when using the Enfold theme. For example, changing the footer language switcher color and setting its Preset color to “White” will not be saved.
Workaround
Add the following code to the functions.php file found in the Enfold theme’s directory (../wp-content/themes/enfold):
add_action('admin_footer', 'add_custom_script'); function add_custom_script(){ ?> <script> (function($){ function i() { $('.wpml-section form').each(function() { $(this).attr('novalidation', ''); }); } i(); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_script');
Unfortunately not working 🙁
Could you tell us which versions of Enfold and WPML you are using? If it’s not working for you, there should be an error in the Javascript console. Please tell us what the error is, so we can see what’s wrong.
The Enfold version is: 3.8
The WPML version is: 3.5.1.1
And the Javascript error is:
An invalid form control with name=’icl_lang_sel_footer_config[background]’ is not focusable.
admin.php:1 An invalid form control with name=’icl_lang_sel_footer_config[border]’ is not focusable.
Sorry for the delay, we are looking for a permanent fix, meanwhile please use this quick fix: https://wpml.org/errata/can-not-save-settings-language-switcher-options/
That was the trick! 🙂
Thanks for this kind of support! Great!
Same issue, Enfold 3.8 & WPLM 3.5.1.1
I cant complete di configuration of WPLM as it gets stuck at the language switcher page.
error on page of language switcher from console:
An invalid form control with name=’icl_lang_sel_footer_config[border]’ is not focusable.
and it also blocks loading the frontend of my site displaying instead of the site a fatal error message:
Fatal error: __clone method called on non-object in /web/htdocs/*****/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 2832
Hi,
A compatibility developer is looking at it now, I will update here later if needed.
As a workaround please try and go to:
WPML -> Langauges -> SEO Options and change the hreflang to be loaded later
Thanks!
thanks for the prompt reply,
Im having a hard time finding the SEO option you mentioned. I might have not been clear with the description of the issue.
The issue arises when the plugin is activated and i go through the setup stages for the plugin, it gets stuck at the language switcher page and the next button at the end of the page doesn’t do anything. I can only go backwards not forwards in the setup. Therefore cannot even start using the plugin.
To avoid further issues i have temporarily switched off completely WPML as it blocks completely the site with the before mentioned fatal error.
Any idea how to over come this issue? Might need a patch to the version of WPML?
Im on Enfold 3.8, WordPress 4.6.1 and WPML 3.5.1.1
Sorry for being a bit slow, we have tested and we are looking at a permanent fix, meanwhile please use this quick fix: https://wpml.org/errata/can-not-save-settings-language-switcher-options/