Title: wp-color-picker error
Last modified: May 11, 2026

---

# wp-color-picker error

 *  [esedic](https://wordpress.org/support/users/esedic/)
 * (@esedic)
 * [1 week ago](https://wordpress.org/support/topic/wp-color-picker-error/)
 * When I enabled Scrollbar plugin on my WP site built on Roots Bedrock & Roots 
   Sage theme, I get an error, which points to the plugin’s themepoints_scrollbar_script()
   function (line 30, hooked to init), which enqueues wp-color-picker on the frontend,
   but WordPress only registers that script in the admin area.
 * Wrapping those two lines in is_admin() condition solves the error.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-color-picker-error%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/scrollbar/assets/icon-256x256.png?rev=1094913)
 * [Scrollbar](https://wordpress.org/plugins/scrollbar/)
 * [Support Threads](https://wordpress.org/support/plugin/scrollbar/)
 * [Active Topics](https://wordpress.org/support/plugin/scrollbar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scrollbar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scrollbar/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [esedic](https://wordpress.org/support/users/esedic/)
 * Last activity: [1 week ago](https://wordpress.org/support/topic/wp-color-picker-error/)
 * Status: not resolved