0

i have a theme installed his name is 'businessplus_lite' i want to add some custom style to my sub theme , but i can't see any css applicable , can anyone help me please !

.info.yml

name: mysub-theme
type: theme
description: 'my sub-theme Commissions'
core: 8.x
base theme: businessplus_lite

libraries:
  - my-sub-theme-name/my-sub-theme-style

libraries.yml

my-sub-theme-style:
  css:
    component:
      css/components/style.css: {}
  • Change component to theme and maybe add a version. Simply try to do it exactly the same as it's described in the docs: drupal.org/docs/8/theming/… – leymannx Feb 10 at 8:38
  • it doesn't work bro :( – love coding Feb 10 at 11:22
  • And of course you have activated the theme, set it as default and flushed cached at least twice, before checking a page in that theme via browser, right? – leymannx Feb 10 at 14:51
  • yeah of course bro , i have have doing all that – love coding Feb 11 at 10:01
  • I'm not your bro. But good to know. Better add these information to your question. – leymannx Feb 11 at 10:56
0

Please try using below code info.yml :

name: mysub-theme
type: theme
description: 'my sub-theme Commissions'
core: 8.x
base theme: businessplus_lite

libraries:
  - mysub-theme/my-sub-theme-style

mysub-theme.libraries.yml :

my-sub-theme-style:
  version: 1.x
  css:
    theme:
      css/style.css: {}
  • it doesn't work bro :( – love coding Feb 10 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.