Drupal 子主题?
我正在尝试根据 Zen 的子主题(starterkit)制作一组辅助子主题。
理想情况:
- 家长主题
- 第 1 节
- 第 2 部分
- 第 2A 节
我已安装并运行我的父主题。对于部分子主题,我复制了父主题,并重命名了相应的文件和文件夹,并将 .info 中的基本主题更改为父主题的名称。然而它并没有继承某些东西,比如 template.php (部分主题没有它们,因为我认为它们应该被继承) - 这意味着我没有像我的父主题那样接收主体类。
我真正需要实现的是为这些不同的部分提供特定的样式,主要是文本颜色和背景图像的更改。这是最简单的方法吗?我不想有一个巨大的样式表,所以任何指针都会受到赞赏。
I am trying to do a set of secondary sub-themes based on a sub-theme (starterkit) from Zen.
Ideally:
- Parent Theme
- Section 1
- Section 2
- Section 2A
I have my parent theme installed and working. For the section sub themes, I copied the parent theme, and renamed the appropriate files and folders, and changed the base theme in the .info to the name of the parent theme. Yet it is not inheriting certain things like template.php (section themes do not have them because they are supposed to be inherited I thought)- which means I don't receive body classes like my parent theme does.
What I really need to achieve is having specific style for these different sections, mainly text color and a background image change. Is this the simplest way to do it? I don't want to have one huge stylesheet so any pointers are appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您运行的是 D 6.20 吗?该更新中修复了子主题继承问题。
http://drupal.org/node/481142
埃里克
Are you running D 6.20 ? There was a fix for a subtheme inheritance issue in that update.
http://drupal.org/node/481142
Eric