Skip Navigation

[Resolved] error in custom code editor

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by SteffenM1628 4 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1545931

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

#1546443

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' );
#1550513

My issue is resolved now. Thank you!