I was trying to override a module's CSS and having no luck and I finally realized it's because my theme's style.css is being loaded first, before the various modules' CSS. I searched and found this reference in an acidfree issue:

A module that calls init_theme() breaks this order.

So I looked through all the modules I have with their own CSS and the only one that has this code in it is the gallery module. However, disabling the gallery module had no effect. It could be that I need to more completely remove it to stop this code from being called but I'd rather not do that on my live site if I can avoid it.

So my question is twofold:

1) Can anyone running the 4.7 gallery module confirm that their theme's style.css is being loaded first in $styles?

2) Does anyone know anything else that may be causing this problem?

Thanks,

Michelle

Comments

kiz_0987’s picture

This was a problem in a previous version of gallery.module. Please download the latest 4.7 or CVS version which should hopefully fix this for you. I can confirm that the last css file being loaded is style.css even with gallery.module.

Michelle’s picture

I just downloaded the CVS of Gallery to be sure I'm up to date and it's still happening. So it's possibly some other module. If anyone else has any ideas, I'll keep an eye on this thread. In the mean time, I've forced a call to my theme's style.css at the end. It's loading twice, which is kind of silly, but it works for now.

Thanks,

Michelle