Hi,
I'm not sure if this is going to work. You can open header.php and find this code
/* add javascript */
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'avia-default' );
wp_enqueue_script( 'avia-prettyPhoto' );
wp_enqueue_script( 'avia-html5-video' );
Maybe you can add the hook for the plugin above or within this code. Something like this
/* add javascript */
wp_enqueue_script( 'NEW-PLUGIN' );
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'avia-default' );
wp_enqueue_script( 'avia-prettyPhoto' );
wp_enqueue_script( 'avia-html5-video' );
Then open functions.php and find this code
if(!function_exists('avia_frontend_js'))
{
function avia_frontend_js()
{
wp_register_script( 'avia-default', AVIA_BASE_URL.'js/avia.js', array('jquery','avia-html5-video'), 1, false );
wp_register_script( 'avia-prettyPhoto', AVIA_BASE_URL.'js/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery', "3.0.1", false);
wp_register_script( 'avia-html5-video', AVIA_BASE_URL.'js/projekktor/projekktor.min.js', 'jquery', "1", false);
}
}
Add wp_register_script for the plugin js files
if(!function_exists('avia_frontend_js'))
{
function avia_frontend_js()
{
wp_register_script( 'NEW-PLUGIN', AVIA_BASE_URL.'js/NEW-PLUGIN.js', 'jquery', "3.0.1", false);
wp_register_script( 'avia-default', AVIA_BASE_URL.'js/avia.js', array('jquery','avia-html5-video'), 1, false );
wp_register_script( 'avia-prettyPhoto', AVIA_BASE_URL.'js/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery', "3.0.1", false);
wp_register_script( 'avia-html5-video', AVIA_BASE_URL.'js/projekktor/projekktor.min.js', 'jquery', "1", false);
}
}
You can change this 'AVIA_BASE_URL.'js/NEW-PLUGIN.js' to the url of the js file for the plugin.
Regards,
Ismael