marcodeltongo / thematic

Automatically exported from code.google.com/p/thematic
0 stars 0 forks source link

wpml language body class #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using WPML

This filter in functions.php:

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;
}

Nothing is returned in the body tag

3. This worked in 9.7.4 but after upgrading to 9.7.7 it is broken

Original issue reported on code.google.com by yveshebe...@gmail.com on 9 Dec 2010 at 9:15

GoogleCodeExporter commented 9 years ago
Change the add_filter call to: 
add_filter( 'thematic_body_class', 'append_language_class');

We forgot to change the name of our filter hook when WordPress introduced its 
own body class. This was fixed in 0.9.7.5.

Original comment by chris.gossmann@googlemail.com on 11 Dec 2010 at 11:34