I have been developing a subtheme and started using the custom css declared in the sub-theme:

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

I had forgotten to add the template folders to the new subtheme, which I did. I cleared the cache so the new subthem templates got picked up, but then from that point on the custom css is now gone and all it is showing me is the core css. I thought that perhaps I needed to save the settings as indicated by some instructions I read (thought I presume this would only apply to colors.css), I clear the cache a few times....

When I look at firebug, none of the subtheme css files are being used, insted only core is being used: at.layout.css

I cannot figure out what is that I am doing wrong here.

Comments

3rdLOF’s picture

I just figured it out:

I copied the templates from core: I need to copy the templates from the sub-theme defined as base in footheme. Once I replace the template files I had copied from core with the ones from the base sub-theme, that went away.

Now, the question is: Where do the templates need to be added? The base sub-theme (At Commerce in my case) or the footheme sub-theme I created?

This thing is awesome by the way.

Jeff Burnz’s picture

Technically speaking if you remove all templates from Footheme it will use the sub-themes (say for example Corolla's) templates. This is why default Footheme has no templates yet will work with Corolla.

So my advice - remove all templates and clear the cache.

Now, if you NEED to override a template because you are customizing it follow this guide:

  1. First look in the sub-theme if that template exists, if so, copy it to your footheme.
  2. If the template does not exist in the sub-theme, look in Adaptivetheme, if so, copy from there.
  3. If the template does not exist in Adaptivetheme, copy from Drupal core.

For template suggestions follow the same guide looking for the root template - copy that and add your suggestion. For example if you need to add a node-[content-type].tpl.php, you should look to see if there is a node.tpl.php file in the subtheme, if not look in Adaptivetheme (there is certainly a node.tpl.php file there).

A helpful module is the Theme Developer, it can show you what templates are being used and where they are.

3rdLOF’s picture

Thanks for the reply Jeff.

By the way, I made my opinion on your work public: http://drupal.org/node/1372258

Bravo man. Truly outstanding.