WPML – Body Classes for Different Languages

Use this function at add a class to the <body> for the active language:

function wpml_lang_body_class($classes) { 
     $classes[] = ICL_LANGUAGE_CODE; return $classes; 

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.