2017-12-25 6 views
0

저는 Drupal 초보자입니다. Drupal Sub Theme을 설정하면 활성화되어 작동합니다. 나는 Bootstrap Theme를 가져 갔다. 이제 맞춤 CSS를 추가하려고했습니다. Drupal : Sub Theme CSS가 작동하지 않습니다.

내 나무입니다 :
enter image description here

libraries.yml

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

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

이 하나

libraries.yml에게

libraries: 
    - recipes/global-styling 
+0

솔루션 : 내 테마 같은 이름을 가진 모듈을했기 때문에 그것은이었다! 이름이 바뀌 었습니다. (필자는 모듈을 필요로하지 않았기 때문에 실제로 제거했습니다) 완벽하게 정상적으로 작동했습니다. 답변 해 주셔서 감사합니다. – parvaneh

0

솔루션 작동합니다

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

info.yml을 시도, 당신은 관리자 또는 데이터베이스에서 캐시를 삭제해야합니다. 저처럼 작동 할 수 있어요.

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

libraries: 
    - 'bootstrap_subtheme/global-styling' 

감사