How to remove close button on the jQuery UI dialog?

How do I remove the close button (the X in the top-right corner) on a dialog box created by jQuery UI? 25 s 25 I have found this worked in the end (note the third line overriding the open function which find the button and hides it): $(“#div2”).dialog({ closeOnEscape: false, open: function(event, ui) { $(“.ui-dialog-titlebar-close”, … Read more

Inbuilt style for jquery-ui-datepicker

I want to use the datepicker that gets bundled with WordPress on the front end of a website. I enqueued jquery-ui-datepicker but the datepicker isn’t styled(no js error in console). Is there a corresponding wp_enqueue_style for that? I used this code in functions.php function rr_scripts() { wp_enqueue_script( ‘jquery’ ); wp_enqueue_script( ‘jquery-ui-datepicker’, array( ‘jquery’ ) ); … Read more

Correct way to enqueue jquery-ui

I’m having a tough time including jquery-ui scripts and styles in my plugin. It seems that my wp_enqueue_script calls are simply ignored. There are already many questions similar to this one, but all answers I’ve found so far boil down to call wp_enqueue_script inside the wp_enqueue_scripts action hook, which I’m already doing. In the constructor … Read more