- π¦πΊAustralia Ryanm81
I am having the same issue for Drupal 10.1.
I can remove both the JS and CSS by using the following in my custom theme's .info file fine:
libraries-override:
ckeditor_accordion/accordion.frontend: falseHowever I don't want to remove the JS, only the CSS, and have tried many combinations to get this to work without success. From my knowledge this below should work but it doesn't:
libraries-override:
ckeditor_accordion/accordion.frontend:
css:
theme:
css/accordion.frontend.css: falseThe fact the first option removes both the JS and CSS suggests it is not a problem with base url or path, am I missing some syntax or something?
- πΊπΈUnited States srdtwc Skokie, IL
In your theme.info file you want something like this
libraries-override: ckeditor_accordion/accordion.frontend: css: theme: css/accordion.frontend.css: false
- πΊπΈUnited States coupertrouper
Just commenting here to let others know that @srdtwc's solution worked for me. With YML files, from my understanding, syntax is really important otherwise they won't work correctly.
In @Ryanm81's code, everything under "theme" needs to be indented one more time so that it matches @srdtwc's example.
After implementing the 'libraries-override' bit in my theme's mytheme.libraries.yml file, all styling was basically removed that comes with CKEditor Accordion and I was able to add my own styles, bit by bit.
I'm not sure if this is sustainable longterm because if the module changes, my CSS will probably break. But until then... this will have to do in my case.
@Ryanm81, hopefully you were able to override it successfully!