WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm developing a plugin for Wordpress and I need a datepicker. So I enqueue the jquery and jquery-ui


and called the datepicker


It worked pretty well, however my datepicker has no style at all. Anyone knows how to fix that?

share|improve this question

migrated from stackoverflow.com Dec 6 '12 at 14:08

This question came from our site for professional and enthusiast programmers.

Here ya go ... try this:

        /* add jquery ui datepicker and theme */
        global $wp_scripts;
        $ui = $wp_scripts->query('jquery-ui-core');
        $url = "https://ajax.aspnetcdn.com/ajax/jquery.ui/{$ui->ver}/themes/redmond/jquery.ui.all.css";
        wp_enqueue_style('jquery-ui-redmond', $url, false, $ui->ver);

This is what I use in my plugin to load a theme. That CDN has all the basic jquery-ui themes.

Hope this helps ...

share|improve this answer
+1 for getting script version :) – Rilwis Dec 6 '12 at 14:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.