Search code examples
drupal-6multilingualdrupal-theming

How to have different style files in multilingual website using Drupal 6?


I have been developing a multilingual website using Drupal 6. The languages are English and Spanish. I want to have some different backgrounds and css for them. But both use just style.css.

How can I create different style.css file for them? For example style-sp.css for Spanish one and en-style.css for English one ?

Is it possible ?


Solution

  • append to template.php in your theme this code:

    global $language;
    drupal_add_css(path_to_theme().'/style-'.$language->language.'.css','file');