Skip Navigation

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');

9 Responses to “Enfold theme cannot save the settings in the language switcher options”

  1. 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