/ Published in: PHP
Load jQuery into WordPress generated pages, the wp_enqueue_script function can be used in plugins as well. OR Add and load a new script that depends on jQuery (this will also cause it to load jQuery into the page as well).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php wp_enqueue_script('jquery'); ?> <?php wp_enqueue_script('jquery'); ?> <?php wp_enqueue_script('newscript','/wp-content/plugins/someplugin/js/newscript.js',array('jquery'),'1.0' ); ?>