【问题标题】:Drupal sub theme does not inherit the parent cssDrupal 子主题不继承父 css
【发布时间】:2013-06-18 12:44:53
【问题描述】:

我有一个名为JeanB 的子主题,其jeanb.info 文件类似于

name = JeanB
description = JenB is a new theme.
basetheme = bartik.


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

regions[header] = Header
regions[help] = Help
regions[page_top] = Page top
regions[page_bottom] = Page bottom
regions[highlighted] = Highlighted
; Information added by drupal.org packaging script on 2012-02-01
version = "7.12"
project = "drupal"
datestamp = "1328134560

目录 jeanb/sites/all/themes 中。但是这个子主题无法继承父 css 属性,虽然 jeansb.css 有效!

【问题讨论】:

    标签: css drupal drupal-theming


    【解决方案1】:

    我觉得应该是

    base theme = bartik 而不是:basetheme = bartik。

    【讨论】:

      【解决方案2】:

      这应该适合你----

      name = JeanB
      description = A sub theme of Bartik theme with many regions.
      core = 7.x
      base theme = bartik
      
      stylesheets[all][] = css/JeanB.css
      
      regions[header] = Header
      regions[help] = Help
      regions[page_top] = Page top
      regions[page_bottom] = Page bottom
      regions[highlighted] = Highlighted
      
      regions[featured] = Featured
      regions[content] = Content
      regions[sidebar_first] = Sidebar first
      regions[sidebar_second] = Sidebar second
      
      regions[triptych_first] = Triptych first
      regions[triptych_middle] = Triptych middle
      regions[triptych_last] = Triptych last
      
      regions[footer_firstcolumn] = Footer first column
      regions[footer_secondcolumn] = Footer second column
      regions[footer_thirdcolumn] = Footer third column
      regions[footer_fourthcolumn] = Footer fourth column
      regions[footer] = Footer
      
      settings[shortcut_module_link] = 0
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2019-12-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多