Events Manager
Please add option to disable jQuery UI CSS (7 posts)

  1. mrherbivore
    Posted 4 years ago #

    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.



  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 4 years ago #

    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

  3. LutherischInNOH
    Posted 4 years ago #

    @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?

  4. nyodulf
    Posted 4 years ago #

    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?

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 4 years ago #

    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

  6. nyodulf
    Posted 4 years ago #

    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.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic