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.
I am trying to change the color of the body background. I have added a custom css file in my .info file. (stylesheets[all][] = css/gdlc.css) However the loading order in the html is the following:
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/gdlc_theme/css/gdlc.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/960.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/reset.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/text.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/regions.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/defaults.css?O" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/omega/css/custom.css?O" />
As you can see the gdlc.css as part of the subtheme is loaded first, therefore not allowing me to change the color of the background because of line 25 in defaults.css. I could turn off the defaults.css but there is a lot of things that I like in there.
Is this a bug or by design?
Comments
Comment #1
himerus CreditAttribution: himerus commenteddid this just start occurring in the latest update?
I can think of one change that might have caused this, but not positive.
Comment #2
himerus CreditAttribution: himerus commentedI'm seeing the bug, not sure what is causing it.
It is definitely NOT by design... I will investigate further, and see what I can find.
Comment #3
himerus CreditAttribution: himerus commentedOkay, this will be fixed in the next release.
This issue stemmed from the new feature allowing the core CSS files to be loaded dynamically via the theme settings interface rather than having them loaded via the .info.
It is now working properly in my sandbox, and will be committed in the next release with a couple other bug fixes.
Comment #5
DanGarthwaite CreditAttribution: DanGarthwaite commentedI am seeing the same error on 7.x-1.0.
Comment #6
himerus CreditAttribution: himerus commentedOpening issue again, and testing in 7.x-1.x
Comment #7
himerus CreditAttribution: himerus commentedI cannot reproduce this now in 7.x-1.x....
I've tested both cvs checkout, and the latest stable package for the 1.x line.
When adding BOTH custom JS and Stylesheet(s) via the .info file in a subtheme, they appear in order as expected.
Please check your codebase is up to date, and I would HIGHLY recommend moving to the 2.x branch of Omega for D7 rather than building anything for the long term in the 1.x line. :)
See you on Friday, Dan!