Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm looking for some documentation or an example to get this working:
http://legomenon.io/article/owl-carousel-extending-custom-callbacks
i know you can add classes with this method, but seems like im doing it wrong (im copy/paste'ing inside my owlcarousel.settings.js)
Any help will be appreciated.
Comments
Comment #1
swim CreditAttribution: swim commentedHey Eduardo1337,
So the article says this functionality can be achieved via a custom module; or ultimately via any separate javascript file. This can be included in a number of ways; via your template.php, via a custom module. Here's some reading for you, Adding JavaScript to your theme or module. This means when updating the module you won't lose any of your changes =).
#Update
Sorry I should also mention that the additional javascript file should of course be included after the owlcarousel.settings.js file. This should happen out of the box if the weight/ scope options are left as is.
Comment #2
swim CreditAttribution: swim commented