Normally Relative URL’s we use:src(“/path/image.png”) This method is not applicable to WordPress.Use get_template_directory_uri() function in front of relative URL to work as same.src(“<?php echo get_template_directory_uri() ?>/path/image.png”) In some themes in wordpress, this may not work. Add the below code for its functioning: path: wp-includes/theme.php