2017-12-25 47 views
0

私はDrupal初心者です。 私はDrupal Sub Themeをセットアップしました。これは起動され、動作しています。 私はブートストラップのテーマを取った。 私はカスタムCSSを追加しようとしていました。Drupal:サブテーマCSSが動作しない

これは私の木である:私はあなたが私を助けることができると思います
enter image description here

global-styling: 
    css: 
    theme: 
     css/style.css: {} 

libraries.yml info.yml

core: 8.x 
type: theme 
base theme: bootstrap 

name: 'Recipes' 
description: 'Uses the jsDelivr CDN for all CSS and JavaScript. No source files or compiling is necessary and is recommended for simple sites or beginners.' 
package: 'Bootstrap' 

regions: 
    navigation: 'Navigation' 
    navigation_collapsible: 'Navigation (Collapsible)' 
    header: 'Top Bar' 
    highlighted: 'Highlighted' 
    help: 'Help' 
    content: 'Content' 
    sidebar_first: 'Primary' 
    sidebar_second: 'Secondary' 
    footer: 'Footer' 
    page_top: 'Page top' 
    page_bottom: 'Page bottom' 
    myregion: 'meine neue Region' 

libraries: 
    - 'recipes/global-styling' 

:)

答えて

0

この1

libraries.yml

global-styling: 
    version: VERSION 
    css: 
    base: 
     css/style.css: {} 

info.ymlあなたのソリューションが動作するはず

libraries: 
    - recipes/global-styling 
+0

ソリューション: 私は私のテーマと同じ名前のモジュールを持っていたので、それがありました! 私は名前を変更しました(実際には私はそれを必要としなかったため、モジュールを削除しました)。 ありがとうございます。 – parvaneh

0

を試してみてください、あなたは、管理者またはデータベースからキャッシュをクリアする必要があります。私のように働くことができます。

global-styling: 
    css: 
    theme: 
     css/style.css: {} 
     css/custom.css: {} 

libraries: 
    - 'bootstrap_subtheme/global-styling' 

おかげ