Archived topic
Import and use JQuery in elements
6 replies · Started by COINSI SAS on September 25, 2019
Hi guys !
I´m trying to add Jquery to the elements hooks. So, I don´t really know if Jquery comes imported into the theme, or if I must add it manually. So, how can I add the Jquery code in the correct and safe way? wp_head or wp_footer... will be great and example.
Thanks fo the support...
Hi there,
This should help:
https://generatepress.com/forums/topic/loading-circle-going-round/#post-939319
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know :)
Great. Can I add this code into the hooks, or I need to put it in the functions.php file? I have created my own plugin to paste php files. It will be correct to paste the code?
Another one ! Do I need to add this PHP file to be able to add the jquery code into the hook?
The code needs to be added using one of three methods I linked above.
Code Snippets is the easiest if you aren't using a child theme already.
Thank Leo ! Good information.
No problem :)