WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form
[resolved] wp_enqueue_script called incorrectly (2 posts)

  1. raiinzen
    Member
    Posted 11 months ago #

    This is the error I'm getting
    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/content/s/t/e/stec81/html/Rain/wp-includes/functions.php on line 2959

    http://wordpress.org/extend/plugins/contact-form-plugin/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 9 months ago #

    Hello raiinzen,

    The styles displaying is called in the plugin as:
    add_action( 'admin_enqueue_scripts', 'cntctfrm_admin_head' );
    add_action( 'wp_enqueue_scripts', 'cntctfrm_wp_head' );
    Involving the necessary hooks.

    Kind regards,
    Support Team

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.