After contacting the support from WPML about the setting font style once switching language, they provided the answer as followed:
<?php if(ICL_LANGUAGE_CODE == 'en'){?>
//include English Styles
<?php }elseif(ICL_LANGUAGE_CODE == 'ar'){ ?>
//include Arabic Styles
<?php } ?>
1. I would be really appreciated if you can direct me how I can set the styles for such as H1, H1, Paragraph, etc so once we switch the language the fonts will be changed as expected.
Thanks,
Sampheap
Comments
if(ICL_LANGUAGE_CODE == 'en'){of course you also need to create css/custom-ar.css file.wp_enqueue_style( 'custom', THEME_URI .'/css/custom.css', false, THEME_VERSION, 'all' );
} elseif(ICL_LANGUAGE_CODE == 'ar'){
wp_enqueue_style( 'custom', THEME_URI .'/css/custom-ar.css', false, THEME_VERSION, 'all' );
}
2. We`ll do it with next update of course but at this moment we`ll give you explanation below what to do. In wpml-config.xml file, please find below line: and replace it with: And for translations, of course you need to use WPML String translation tool.
Thanks for understanding!