开发者

Simple Drupal sub-themeing...what am I doing wrong...?

I'm trying to set up a very basic subtheme with Drupal. I've been led to believe that the subtheme will inherit the settings of the base theme and the two themes will look almost identical.

Here are the steps I am taking...

  1. Creating a new folder at '/sites/all/themes/sub_theme_name'.
  2. Crea开发者_开发百科ting the info file 'sub_theme_name.info' in this folder. Here are the contents...
$Id$

name = sub_theme_name

description = This is a demo sub theme.

version = 1.0

core = 6.x

base theme = garland

  1. Browse to the Themes Admin page. Enable my subtheme and set it to the default.
  2. Browse to my front page...this is where I expect everything to look identical or almost identical to the base theme 'garland'. The problem is that no CSS files are being inherited.

Any ideas?


There is a little gotcha in the docs.

All style sheets defined in the parent theme, but there is an option so this can be controlled. Furthermore, your subtheme must define at least one stylesheet in order to inherit parent stylesheets.

So if you define a stylesheet, even if it is empty it should work.


I reckon that you should start with project zen.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜