Hello, I would like to implement a JQuery library into the builder via a CDNJS link. What are the best practices to do this? The library will probably be called on multiple pages.
Thanks in advance.
Hello, I would like to implement a JQuery library into the builder via a CDNJS link. What are the best practices to do this? The library will probably be called on multiple pages.
Thanks in advance.
Thanks for reaching out.
You need to use the wp_enqueue_script function to add the specific JavaScript file through URL. I would suggest you add the code for it in the child theme functions.php. To get more information on how to use the function, please go through the documentation given below:
I would also request you to check the default scripts that are already enqueued in the WordPress if your script has already there.
Hope it helps.
Thanks
Thanks for that, I will check it out and try.
You’re welcome.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.