Add this code snippet to functions.php file of active WordPress theme
//Add language classes to body
add_filter('body_class', 'add_language_classes');
function add_language_classes($classes){
$classes[] = "lang-".ICL_LANGUAGE_CODE;
return $classes;
}
Need Professional Support for Your Website Problems?
Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.
Hire Us