Specifically in your plugin is the following line.
add_action( 'admin_enqueue_scripts',array( $this,'ect_remove_wp_colorpicker'),99);
In your code you might be able to specifically select the tab your setting are on to remove this, rather than in all of The Events Calendar Settings.
I’ve narrowed it down further and the activation of wp-color-picker-alpha.js or wp-color-picker-alpha.min.js is what causes the issue. I don’t know specifically in what part of the code.
Hi Andy Fragen,
I greatly appreciate your efforts and helpful comments.
I have fixed this bug using below mentioned condition.
$current_screen = get_current_screen();
if( $current_screen ->id === "tribe_events_page_edit?post_type=tribe_events-events-template-settings" )
{
wp_enqueue_script( 'wp-color-picker' );
wp_enqueue_style( 'wp-color-picker' );
wp_enqueue_script( 'wp-color-picker-alpha', TitanFramework::getURL( '../js/min/wp-color-picker-alpha-min.js', __FILE__ ), array( 'wp-color-picker' ), TF_VERSION );
}
Please update your installed plugin version with latest version 1.0.8. And let me know if you are still facing any problem.I will Happy to assist you.
[ Signature deleted ]
-
This reply was modified 7 years, 11 months ago by
CoolHappy.
-
This reply was modified 7 years, 11 months ago by
Jan Dembowski.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Hi CoolHappy, Thanks for the great support but please lose the signature. That’s prohibited in these forums as it’s been horribly abused in the past by others.
Yes, bad people ruin it for others. Please refrain from that.
https://ww.wp.xz.cn/support/guidelines/#avoid-signatures
CoolHappy,
Thanks for the fix. I have looked at the Titan Framework and see that there is an update to v1.12.1.
Locally, I have swapped out the newer framework version in your plugin and the issue is resolved. I would therefore suggest updating to the current Titan Framework in your plugin.
https://github.com/gambitph/Titan-Framework
Thanks for your responsiveness.
Andy
It’s my pleasure.
Sure, I will update it in upcoming update.