In Drupal 7, in the body tag of my English home page, I see the following CSS classes (among others): html, front.

I added a French translation for this home page by clicking on the "translate" link. The body tag of my French home page has the following CSS classes (among others): html, not-front.

For the French version, how do I substitute the CSS class "not-front" with "front"?

1 Answer 1


You could do this in the preprocess_html function.

You should take a look at the i18n module, which allows you to have different frontages for each language, which could be an alternative (and better) way of solving the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.