I want to add a jQuery dialog modal to a form page. When the dialog box is triggered I see the the text content but with no CSS. I’m pulling in the jquery in the functions.php for the page:
wp_enqueue_script('jquery-ui-dialog');
The jquery css (jquery-ui-dialog.css) is under my wp-includes/css directory.
I tried adding
wp_enqueue_style('jquery-ui-dialog');
but it not work. Does anybody know the proper way to enable jQuery Dialog.
There is no
jquery-ui-dialog
style defined in WordPress Out of the box, you need to ue the stylesheets manually, when i needed to enqueue the jQuery-UI style i pulled it from google api CDNbut you can enqueue a local copy if you want like this:
You can include the jquery-ui-dialog style in frontend using: