Support

Home Forums Event Espresso Premium Plugin conflict with UsersPro

Plugin conflict with UsersPro

Posted: November 2, 2017 at 9:03 am


Melodie Reagan

November 2, 2017 at 9:03 am

Hello, we are having a plugin conflict with UsersPro. When we try to add the event date it appears that formatting from UsersPro is replacing EE’s calendar popup and removing functionality.

Here’s a link to a screenshot of the issue: http://coloradocompaniestowatch.org/wp-content/uploads/2017/11/Screen-Shot-2017-11-02-at-8.57.47-AM.png

Any thoughts on how to work around this?

Thanks!


Josh

  • Support Staff

November 2, 2017 at 9:08 am

Hi Melodie,

This can be fixed by adding a tiny PHP script that will dequeue/remove the UsersPro formatting from the EE admin page. Generally other plugins should only add their formatting to their own admin pages, and when they add them everywhere you’ll see conflicts like this one. Is there a place where we can download the UsersPro plugin to check its code out?


Melodie Reagan

November 2, 2017 at 10:28 am

Hi Josh,
Thanks for the quick reply. Here’s a temporary Dropbox link you can access the plugin. Let me know if you have any issues.
https://www.dropbox.com/s/0zebpqm5t6bmtjh/codecanyon-5958681-userpro-user-profiles-with-social-login.zip?dl=0


Josh

  • Support Staff

November 3, 2017 at 8:11 am

Thanks for the link. You can add the following code to remove the Userpro datepicker styles from the Event Espresso event editor page:

add_action(
    'toplevel_page_espresso_events', 
    'my_remove_userpro_stylesheet'
);
function my_remove_userpro_stylesheet(){
    wp_dequeue_style('userpro_admin_fa');
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


Melodie Reagan

November 6, 2017 at 8:29 am

Works like a charm, thank you!!

The support post ‘Plugin conflict with UsersPro’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso