Events Pro css conflicting with Gravity Forms and GD CPT css on admin pages

Home Forums Calendar Products Events Calendar PRO Events Pro css conflicting with Gravity Forms and GD CPT css on admin pages

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #131192
    Chris
    Participant

    When Events Calendar and Events Calendar Pro are active, the css it uses interferes with the css to render the settings and admin interface for Gravity Forms and GD CPT. This conflict makes the other two plugin interfaces not usable.
    Is there a way to localize the admin css for Events Calendar to just the events Calendar admin screens?

    #131396
    Barry
    Member

    Apologies for the inconvenience.

    We’re looking into some changes here, but in the interim could you try adding something like this to your theme’s functions.php file and see if that provides a measure of temporary relief?

    /**
     * Crude means of removing events-admin.css from all screens that are
     * not "owned" by The Events Calendar.
     */
    function limit_range_of_tribe_admin_styles() {
    	if ( ! class_exists( 'TribeEvents' ) ) return;
    	if ( false === strpos( $_SERVER['QUERY_STRING'], 'tribe' ) )
    		wp_dequeue_style( TribeEvents::POSTTYPE . '-admin' );
    }
    
    add_action( 'admin_enqueue_scripts', 'limit_range_of_tribe_admin_styles', 20 );
    #235831
    esctechgroup
    Participant

    I came here looking for a solution to an Events Calendar Pro conflict I noticed.
    Whenever ECP is activated, the Gravity Forms Form Editor breaks (can’t add fields).
    Unfortunately, adding the code above to functions.php does not solve the problem. The only solution is to disable ECP which then allows me to edit forms again.
    Needless to say, disabling Events Calendar Pro every time I want to edit or create a form isn’t ideal. 🙂
    I have both Events Calendar and Events Calendar Pro 3.6.1 installed.
    Everything else is running on the latest releases.
    Any help would be greatly appreciated!
    Mike

    #238334
    esctechgroup
    Participant

    Quick Notes & Update to the conflict:
    > The conflict only occurs when The Events Calendar PRO is enabled.
    > Non-Pro The Events Calendar does not cause a problem with form editing in Gravity Forms.
    > I attempted to downgrade The Events Calendar & Pro to 3.5.x and the problem is there with that version as well.
    I only recently added Pro to this particular site in development, so I wouldn’t have noticed the issue before.
    Thanks again in advance for any insight into the issue.
    Mike

    #238355
    Barry
    Member

    Hi Mike,

    Really sorry we missed your posts. Can I ask that you post your questions in a new thread of your own? Unfortunately, when you “hijack” another customer’s thread staff aren’t automatically alerted to further replies by anyone other than the original poster.

    Sorry for the inconvenience and thanks for bearing with us!

    #238386
    esctechgroup
    Participant

    No apologies needed. I thought I was continuing the thread since it appeared to be the same problem. I’ll post again.
    Thanks,
    Mike

    #238617
    Chris
    Participant

    This reply is private.

    #238873
    Barry
    Member

    Excellent – would you object if I re-post your reply publicly?

    #238897
    Chris
    Participant

    Please repost as a public reply. Thanks for asking!

    #238904
    Barry
    Member

    Thanks – that’s appreciated 🙂

    I removed the code above and am running WP 3.9.1, ECP 3.6.1, Gravity Forms 1.8.8 and GD Custom Posts And Taxonomies Tools 4.3.3 and I no longer have CSS conflicts in the admin screens of the other plugins. The recent update must have done the trick.

    So that’s great news and I’ll close the thread at this point – but, Mike, if you or anyone else does need further help with this/a similar issue definitely do feel free to create a new thread and we’ll do our best to assist.

    Thanks!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Events Pro css conflicting with Gravity Forms and GD CPT css on admin pages’ is closed to new replies.