WordPress.org

Support

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

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

  • mrherbivore

    @mrherbivore

    The latest EM is linking to a jQuery UI theme CSS file on all my front-end pages, which is overriding other UI tab interfaces I have on the site. I’ve commented it out for now, but a setting to not load that file would be a respectful addition to the plugin.

    Thanks,
    Derek

    http://wordpress.org/extend/plugins/events-manager/

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

    @netweblogic

    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 http://codex.wordpress.org/Function_Reference/wp_dequeue_style

    LutherischInNOH

    @lutherischinnoh

    @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

    @netweblogic

    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

    @netweblogic

    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.