Sorry Waqar, but this is not the solution anyway. This is exactly the opposite what you promise to customers. ‘Build wonderful websites without coding’, as I recall. Why should I put any additional php and js code to do such simple thing like using the standard WordPress palette? Even if I tried to use this code, this is totally inconvenient way, based on php, css, and JS – even worst then in ACF.
And also this is not the problem of any plugin incompatibility with Toolset, this is the problem of Toolset incompatibility with WordPress itself.
1. Why every other Toolset configured custom field, when dealing with colors is showing the standard WordPress color picker but in colorpicker custom field Toolset is NOT showing the standard worpress colorpicker?? This is incomprehensible for me. Is there any explicable reason behind this?
And your proposed code is the evidence of this. This is hacking Toolset inside Toolset. The code you propose me is doing exactly what I said above. It is forcing Toolset to use standard WP request. Why we should do this? This should be the Toolset standard behavior – use the WP core and WP standards, not any custom picker.
And there is more:
2. Why colorpicker field is not having the default value, like most of other custom fields? It has only placeholder. Is there any explicable reason behind this? Even the simple oneline custom field has a default value. Setting the color default value is necessary! How do you imagine setting the same color for lets say 50K products? And what about changing them?
And there is even more:
1. Why the proper set and saved default value from Toolset single line custom field is not accessible from Elementor dynamic tag? In this case the default value (and also your proposed workaround) is simply useless. This is also very strange, but it may be on the Elementor side.
Please do not try to find out the other ‘code based, toolset hacking solution’ for above problems. Please forward this ticket directly to Toolset code developers – and hey guys, please simply call the standard wp color picker in every toolset custom field. I assume this is a simpler approach. And finally, maybe I don’t understand something, or I am quite wrong in what I’m trying to archive, so then please explain me. I can live without these features, it can be done in different way, with other plugins, but I did not expected it would be impossible with Toolset.
Anyway, Toolset is of course a wonderful plugin/system and it working great in most of the contexts you show! Thanks for this.
Best Regards, stay safe,
Eryk