Tell us what you are trying to do?
Hey there, i use your custom code editor. But i do get an error which i don´t know what to to.
The error is: A problem occurred when executing snippet "plugin_emojis". The result of include_once is: ""
And this is my code (i want to add a jQuery Plugin):
function enqueue_emojionearea_jquery() {
wp_register_style( 'emojionearea_css', '/wp-content/jquery-plugins/emojies/emojionearea.min.css', false, '3.0.0', 'all' );
wp-content/jquery-plugins/emojies
wp_register_script( 'emojionearea_js', '/wp-content/jquery-plugins/emojies/emojionearea.min.js', array( 'jquery' ), '3.0.0', true );
wp_enqueue_style( 'emojionearea_css' );
wp_enqueue_script( 'emojionearea_js' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_emojionearea_jquery' );
Hope you guys can help me out.
Cheers
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
I can see that with the code you shared - there is an uncommented line on line #3.
Can you please try to use the following code and check if that help you to resolve your issue:
function enqueue_emojionearea_jquery() {
wp_register_style( 'emojionearea_css', '/wp-content/jquery-plugins/emojies/emojionearea.min.css', false, '3.0.0', 'all' );
// wp-content/jquery-plugins/emojies
wp_register_script( 'emojionearea_js', '/wp-content/jquery-plugins/emojies/emojionearea.min.js', array( 'jquery' ), '3.0.0', true);
wp_enqueue_style( 'emojionearea_css' );
wp_enqueue_script( 'emojionearea_js' );
}
add_action( 'wp_enqueue_scripts', 'enqueue_emojionearea_jquery' );
My issue is resolved now. Thank you!