mrherbivore
Member
Posted 8 months 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.
Thanks,
Derek
http://wordpress.org/extend/plugins/events-manager/
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
Member
Posted 8 months 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?
nyodulf
Member
Posted 7 months 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?
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
nyodulf
Member
Posted 7 months 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.
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.