I'm using jQuery UI for a few custom controls on the page edit screen and I've noticed that the styling of the jQuery UI dialogs are conflicting with the TinyMCE dialog. Specifically the buttons and title area look especially bad. I've looked through the jQuery UI css to see what could be removed to avoid any conflicts and they're spread pretty much throughout the whole stylesheet. Is there a way to run both together without conflicting?

  • How are you adding the jQuery UI, could you post the code for us to examine? Nov 22, 2011 at 23:36

2 Answers 2


It should work just fine if you enqueue your script & stylesheet within functions.php file.

This is how I do that (feel free to copy & paste, it should work out of the box):

function load_my_admin_js() {

add_action('admin_init', 'load_my_admin_js');   

function load_my_admin_css() {
   wp_enqueue_style( 'jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css');  

add_action( 'admin_print_styles', 'load_my_admin_css');  

Don't forget to delete your previous links to jQuery UI.

If something is still wrong, then your custom JS code is corrupted and affects other elements. Can't say anything more without investigating the code itself.


Turns out what I had to do was use the CSS Scope option in the jQuery UI download application. I was using the normal wp_register_style/wp_enqueue_style to put it in place and it would always conflict with the jQuery UI dialog styling that the Wordpress install of TinyMCE uses. After switching to using a scoped version of the jQuery UI styles everything worked fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.