In my theme (Underscores based).
<html <?php language_attributes(); ?>>
Then I’m calling the body class function on the body tag:
<body <?php body_class(); ?>>
Seeing as these body add a class=”” I can’t combine them by just appending the 2 functions.
Any way I can add a filter to language_attrubutes() so that it also appends the body class?
Read more here:: Adding body class to html tag that already has language attrubutes?