WordPress.org

Forums

jQuery Smooth Scroll
Notices - wp_register_script and wp_register_style called incorrectly (3 posts)

  1. Chad Bush
    Member
    Posted 2 years ago #

    This plugin is the best I've found so far to do what it does. But I tend to develop custom themes with WP_DEBUG turned on, and this plugin is causing the following notices to be thrown:

    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks.

    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks.

    I don't quite grasp the way the author has registered and enqueued styles and scripts in this plugin, or I'd fix it myself. It's probably an easy fix for the author. I don't like to use plugins that throw notices or errors, but I haven't found a better alternative and this is a bit more than I want to build from scratch.

    Any guess when you might have a chance to fix this?

    Thanks again for this great plugin!

    http://wordpress.org/extend/plugins/jquery-smooth-scroll/

  2. fogcity
    Member
    Posted 1 year ago #

    +1 on this. Anyone know a fix?

  3. BlogSynthesis
    Member
    Plugin Author

    Posted 1 year ago #

    Hello fellows,

    This has been now fixed in the Beta 1.3.0. You may download this from GitHub.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • jQuery Smooth Scroll
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic