0

I am using Simple Mega Menu module.

I want to disable the CSS and JS provided by this contributed module:

  • modules/contrib/simple_megamenu/js/simple_megamenu.js
  • modules/contrib/simple_megamenu/css/style.css

In the module description the say

Simple Mega Menu provide basic styling. You can override the library (css/js) provided by this module simply by adding theses lines into your theme file my_theme.info.yml

libraries-override:
  # Replace an entire library.
  simple_megamenu/base: my_theme/megamenu

How do I disable the CSS and JS files properly in my_theme.info.yml?

1 Answer 1

1

I think setting the library to FALSE should work:

libraries-override:
  # Replace an entire library.
  simple_megamenu/base: false

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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