I have seen this reply before: How to implement color picker from wordpress in my plugin?

But I personally still don't quite understand how I can add it in my plugin that follows the boilerplate structure.

Can someone explain it to me better? And where do I get the files for the color picker from? Thanks!

  • What is this boilerplate structure you're using? Which part of the answer in the other question are having difficulties with? WP ships with the color picker script file so you don't need get it yourself from anywhere. Just enqueue it as described in the answer and the script will be available for you to use in your own scripts. May 17 '21 at 14:37
  • I used this site to generate the boilerplate: wppb.me May 18 '21 at 15:05
  • I've already tried following that documentation, but it doesn't work for me May 18 '21 at 15:06
  • could you edit your question and include the relevant parts of your code to show how you tried to implement the code example from the other question's answer, please? May 19 '21 at 6:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.