0

I searched the web all over the place and withing Beaver builder itself but could not found what I wanted.

I want to use some jQuery libraries for my animations. How do I add other libraries into my project, so I can use those elements within my projects?

Blank
  • 540
  • 2
  • 21

2 Answers2

0

From the docs

To add custom JavaScript to a specific page :

  • Click the title bar in the upper left corner to open the Tools menu, then click Layout CSS & JavaScript.
  • On the JavaScript tab, enter your JavaScript code.
  • Click Save.
Alexandre Elshobokshy
  • 10,720
  • 6
  • 27
  • 57
0

The correct way to enqueue scripts (including adding libraries) is to use:

wp_enqueue_script($handle, $src, $deps, $ver, $in_footer);

Where $deps is an array which takes the name of any libraries you're using e.g.

$deps = array('jquery');

Read more

If you haven't had much experience with PHP, you could add some html and just use a script tag to include the library you want, although this is not convention. E.g.

<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js'></script>

David_2002
  • 84
  • 9