Skip to content Skip to sidebar

Resolved by author

Resolved in: Blocksy 2.0.46

Topic Tags: Compatibility

Overview of the issue

If you are using the Blocksy theme and its Blocksy Companion plugin, you will notice that the products layout appears broken and does not display correctly in the Dashboard > Products page when the site language is set to Arabic.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/themes/blocksy/inc/classes/translations-manager.php file.
  • Look for line 279.
  • Replace:
    		if (
    			function_exists('icl_get_languages')
    			&&
    			defined('ICL_LANGUAGE_CODE')
    			&&
    			isset(icl_get_languages()[ICL_LANGUAGE_CODE])
    		) {
    			return icl_get_languages()[ICL_LANGUAGE_CODE]['default_locale'];
    		}
    
  • With:
    		if ( class_exists('Sitepress') ) 
    		{
    			return apply_filters( 'wpml_current_language', NULL );
    		}