WordPress.org

Ready to get started?Download WordPress

Forums

WordPress 3.5 ui.datapicker in admin post page (2 posts)

  1. Firanolfind
    Member
    Posted 1 year ago #

    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.

  2. Marventus
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic