0

I'm trying to put the colorbox javascript library to the shared sites/all/libraries directory but it is not recognized by the colorbox module. The same seems to go for the jquery.cycle library. I just copied the libraries directory from sites/nias.cz/libraries` to the shared one. The final example path is

sites/all/libraries/colorbox/jquery.colorbox.js
2
  • 4
    The location needs to be just libraries/ at the same level where sites/, core/ etc. reside, the webroot.
    – leymannx
    Commented Jan 13, 2023 at 12:20
  • Drupal 8+ installed in the libraries directory so the path becomes "libraries/colorbox/jquery.colorbox-min.js"
    – user106880
    Commented Jan 14, 2023 at 5:01

1 Answer 1

1

Libraries have changed since Drupal 7. Libraries are no longer stored in sites/all/libraries. Drupal 8+ uses Composer and stores third-party libraries in libraries.

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.