Main Menu

search

You are here

CSS in Drupal

[last updated: 2024-01-25]
Drupal home page
Drupal Themes
-----

very rough, just starting to collect/organize info...


      On This Page:

-------------------------------------------------------------------------------

  • ...

  • Use .css files in Drupal: needs editing/links for drupal-10
    • [This is just what I did for this site, which uses a Garland theme]
    • Create a new directory:
      [root]themes/garland/css
    • Copy my personal css file (SMN01.css) into the css directory.
    • Edit [root]themes/garland/garland.info:
      Find the existing line:
            stylesheets[all][] = style.css
      Immediately after this existing line, add the line:
            stylesheets[all][] = css/SMN01.css
    • In browser, with the website loaded, logged in with admin privileges:
      Configuration > Development > Performance
      select Clear All Caches

    --------------------------------------------------------------------------------

eof