I am trying to add an external Javascript file from my plugin. My code is –

 * Plugin Name: Image Zoom
 * Author: Kallol Das   
 * Description: This plugin will zoom an image of WordPress posts.
 * version: 1.0

 function zoom_image_main_js_init(){

 wp_enqueue_script('zoom-script', plugins_url('/js/zoom-script.js', __FILE__), array('jquery'), 1.0, true);


add_action('init', 'zoom_image_main_js_init');

Now the problem is It’s only enqueuing in admin footer But not in Frontpage footer. So, how to do that?

Read more here: How to enqueue an external Javascript file to Frontpage footer


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: