Color picker not showing at all
-
Hello god people. I’m having problems with the last update of this marvelous plugin. Suddenly, all the color pickers I had set up before are gone in my custom post type editor (clic for picture), in classic mode. But I am able to see the color picker in Block Mode but as I said, the problem is in my custom post type, and on classic mode. I don’t know if you stopped supporting classic mode, and didn’t find any info about that too. Also, the absence of the color picker doesn’t produce any error on console.
Please, if you can help me I’ll be very grateful. Thanks in advance beautiful community.
-
Hi @metamorpher ,
Thanks for your feedback. I’ve just checked the color field with a custom post type that doesn’t support block editor and don’t see the problem. Here is my screenshot:
Is there anything that I am missing? Can you post the list of the plugins you’re using and the code of the meta box?
Hi @rilwis, this is my array for the field:
array( 'name' => __( "Color de Cabecera" ), 'id' => 'color_overlay', 'type' => 'color', 'clone' => false, )
What I found out is that if I enable cloning of that field, I press Add More and it adds another field without any problem. But the parent object is unusable. Weird.
For the record: I’m testing it on local, and don’t have any plugin active, but the one I made my custom post type and call the rwmb_meta_boxes filter.
-
This reply was modified 5 years, 10 months ago by
metamorpher.
Sorry, my bad. I have an js that was being called by a coworker and he didn’t tell me that he was using it. That was breaking the whole schema. Sorry for the trouble.
If you guys want to know what the issue was, then, the JS of my coworker was using
wpColorPicker
to listen to changes of the field. Changing that function name foriris
was enough to fix ’em. Haha.Glad that you resolved it!
-
This reply was modified 5 years, 10 months ago by
- The topic ‘Color picker not showing at all’ is closed to new replies.