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.
stylesheets[all][] = custom/style-custom.css
I have been trying to add a couple of regions with there own css ID's
So I renamved the default.style-custom.css file, as is exlained in the readme file.
added my ID's and have not had any luck. the css is not loading.
any suggestions?
Comments
Comment #1
Tafa CreditAttribution: Tafa commentedSame problem as well.
Comment #2
Tafa CreditAttribution: Tafa commentedA possible lead is the template php file which indicates the following:
// Load the custom stylesheet.
if (is_file($theme_path . 'custom/style-custom.css')) {
drupal_add_css($theme_path . 'custom/style-custom.css', 'theme', 'all');
So, what needs to be done is perhaps to make sure to name the custom file style-custom.css
Comment #3
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedHi, you don't need to at the file to the .info file, as pointed out by Tafa @Feb.7 its loaded via the template.php file.
Maybe you guys are using CSS aggregation? In that case it won't work until you clear the cache.
The file will only be loaded if you remove the defaul. part so that you get style-custom.css