Support » Plugin: Events Manager » [Plugin: Events Manager] Please add option to disable jQuery UI CSS

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marcus


    someone else raised this too, will look at making it load dynamically via JS if needed.

    for disabling it completely you can however do something like using

    @derek and Marcus: My css is broke as well. How do I comment it out or disable the overriding? Can you explain to a wordpress-novice?

    I’d appreciate a more in-depth explanation of how to override it too. The head markup which calls the jquery css looks like this:

    /* <![CDATA[ */
    var EM = {
    	ajaxurl: "http://(...)/wp-admin/admin-ajax.php",
    	locationajaxurl: "http://(...)/wp-admin/admin-ajax.php?action=locations_search",
    	firstDay: "1",
    	locale: "",
    	bookingInProgress: "Please wait while the booking is being submitted.",
    	ui_css: "http://(...)/wp-content/plugins/events-manager/includes/css/jquery-ui-1.8.13.custom.css"
    /* ]]> */

    How do I override that?

    Plugin Author Marcus


    that’s done by the wp_localize_script variable, you’d have to hook into the way WP deals with this somehow and modify there

    Just to clarify: Does that mean that wp_dequeue_style cannot be used to remove the default jquery css?

    For myself, rather than disabling the existing css (as the topic of this thread suggests), I would prefer a simple method to override it. Ideally it would be as simple as placing a stylesheet with a set name in the theme folder which EM would use to override any of its defaults.

    Plugin Author Marcus


    no, due to conflicts with things like gravity forms, the JS now loads the style dynamically.

    I guess what you could do is add some JS to your theme or other to change the EM.ui_css value to your stylesheet path. If you added it to your header.php file just before the head closing tag i think it should work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Events Manager] Please add option to disable jQuery UI CSS’ is closed to new replies.