[英]Drupal: Sub Theme CSS Won't work
我是Drupal的初學者。 我設置了一個Drupal Sub Theme,它已經激活並且可以工作。 我選擇了Bootstrap主題。 現在,我試圖添加我的自定義CSS。
library.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'
我希望你能幫幫我 :)
試試這個
library.yml
global-styling:
version: VERSION
css:
base:
css/style.css: {}
info.yml
libraries:
- recipes/global-styling
您的解決方案應該可以工作,您必須從管理員或數據庫中清除緩存。 它可以像我一樣工作。
global-styling:
css:
theme:
css/style.css: {}
css/custom.css: {}
libraries:
- 'bootstrap_subtheme/global-styling'
謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.