I have flexslider library in my library folder. how to add jquery.flexslider.js file in my theme or how to call in my template.php file.


If the library has been created than you can use libraries_load() as below:

// Load the library of flexislider plugin.

libraries_load: Loads a library.


  • $name: The name of the library to load.
  • $variant: The name of the variant to load. Note that only one variant of a library can be loaded within a single request. The variant that has been passed first is used; different variant names in subsequent calls are ignored.
  • This is assuming the library has been created before using hook_library
    – Beebee
    Oct 18 '13 at 12:17

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.