I'm currently using Zen for my subtheme, and attempting to add CSS to my .info file, but all my effort is for naught. The .info file is in my subtheme's root, and is named as such - mytheme.info. When I add a css file I input the following code

 stylesheets[all][] = css/background.css

The css file is in the css folder of my subtheme's directory. The particularly annoying thing is if I input the same code into a pre-existing css file it works perfectly fine, for example I input:

  /* HTML Background-Image */
background-image: url(../../images/body-bg.jpg);
background-repeat: repeat;
background-position: center center;

Into components/misc.css and it loads up perfectly fine, background and all. I've read that using SASS might fix this problem, but I have a feeling that won't be the case

Am I doomed, never to create a new stylesheet and use it via the .info file, is anyone else experiencing this atrocity? Help Please :C

  • Importing via styles.css works, but is that the only alternative, why doesn't it work via .info file?
    – Bakajuice
    Jul 10, 2014 at 19:53
  • Just to make sure, you cleared your cache, right?
    – Jance
    Jul 10, 2014 at 20:11
  • :) It clears on every page load, but just in case I cleared it manually as well, its more so css than js, I had some faulty js which I just fixed, though css is just ignored when I place it normally.
    – Bakajuice
    Jul 10, 2014 at 20:16
  • Are the permissions on the file something that a user can read?
    – Jance
    Jul 10, 2014 at 20:35
  • Yeah I'd like to say that I learn from past mistakes :) But heres the thing after refreshing the page after around 10mins without interaction the page loads the background, can it be lag, because I cleared the cache before auto and manually, and I've checked the permissions, as well as constantly checking the css files, the .info file were all saved...
    – Bakajuice
    Jul 10, 2014 at 20:48


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.