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

  1. raiinzen
    Posted 2 years 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


  2. bestwebsoft
    Plugin Author

    Posted 2 years 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.