Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Bartik uses a library bartik/global-styling
that allows the custom css to be attached to. If a module is not using a library with the explicit naming of global-styling
then the custom css code will not be attached to the theme.
To reproduce, create a custom theme with a css library named something other than global-styling
.
It's probably better to have the module attach a custom library instead of hoping that an existing one is present.
Comment | File | Size | Author |
---|---|---|---|
#2 | attach-library-2923573-2.patch | 1.86 KB | segovia94 |
Comments
Comment #2
segovia94 CreditAttribution: segovia94 as a volunteer commentedThis patch adds the library to the active theme and then attaches it.
Comment #4
encelado CreditAttribution: encelado commentedThank you for your valuable contribution! Patched module is already available in development version.