Support » Plugin: The Events Calendar Shortcode and Templates Addon » Titan framework causing issues with other plugins

  • Resolved Andy Fragen

    (@afragen)


    I am the developer of The Events Calendar Category Colors plugin. Recently a user has found a plugin conflict between our plugins.

    I use the built-in WordPress color picker (wp-color-picker), the Titan framework seems to have a file, wp-color-picker-alpha.js, tha disables the default color picker.

    I haven’t dug further, but I believe this is the root cause of the conflict.

    https://wordpress.org/support/topic/cant-see-category-colors-input/

    I’m happy to help with some sort of resolution, please let me know.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Plugin Author CoolHappy

    (@narinder-singh)

    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 1 year, 4 months ago by CoolHappy.
    • This reply was modified 1 year, 4 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://wordpress.org/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

    Plugin Author CoolHappy

    (@narinder-singh)

    It’s my pleasure.
    Sure, I will update it in upcoming update.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Titan framework causing issues with other plugins’ is closed to new replies.