Beaver builder other libraries

337 Views Asked by At

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?

2

There are 2 best solutions below

0
On

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.
0
On

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>