This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: WPML – changing logo while viewing pages in a different language

#1297
Jason Bobich
Keymaster

A google search brought me to this thread from the WPML support forums. —

http://wpml.org/forums/topic/body-class-based-on-language/

This is how you’d add a body class based on the language.

add_filter('body_class', 'append_language_class');

function append_language_class($classes){

  $classes[] = ICL_LANGUAGE_CODE;  //or however you want to name your class based on the language code

  return $classes;

}