Skip Navigation

[Gelöst] error in custom code editor

This support ticket is created vor 4 Jahren, 8 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von SteffenM1628 vor 4 Jahren, 8 Monaten.

Assistiert von: Minesh.

Author
Artikel
#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

Sprachen: Englisch (English )

Zeitzone: 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!