Support » Fixing WordPress » WordPress 3.5 ui.datapicker in admin post page

  • How to define jquery.ui.datepicker.min normaly? Standart wp_enqueue_script(); does not help!

    All scripts defines before jquery.ui.core.min. Someone very clever decided to include core scripts in the footer of post page.

Viewing 1 replies (of 1 total)
  • Hi.
    Been scratching my head trying to decipher what you meant, but it’s rather hard.
    First of all, wp_enqueue_script() is the normal (and I would even say the recommended) way to include JS scripts in a WP installation. In this corresponding Codex Article you have a section with all the handler names of all the scripts that ship with WP, and jQuery UI is among them, of course.
    Last but not least, JS scripts should be loaded in the footer and/or in an asynchronous way, but if for some reason you don’t want to do that, simply leave the $in_footer parameter empty (false is default) and your scripts should load in the <head> of your site.
    Cheers.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress 3.5 ui.datapicker in admin post page’ is closed to new replies.