Web'Up, réalisation de site Internet sous Drupal

Add css in the template.php file / Ajouter une css dans le fichier template.php

Having trouble using drupal_add_css with template_preprocess_page? Make sure you refresh the $variables['styles'] array:

function template_preprocess_page(&$variables) {
     drupal_add_css('path/to/style.css');
     $variables['styles'] = drupal_get_css();
}

Comments

Publier un nouveau commentaire

  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • No HTML tags allowed

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.