The title pretty much explains exactly what I'm trying to do. If someone could help me out, that would be awesome. Thanks!
:)
|
The title pretty much explains exactly what I'm trying to do. If someone could help me out, that would be awesome. Thanks! :) |
|||
|
|
|
the correct way to include files for scripts you can use the hook "admin_print_scripts" and include your scripts with wp_enqueue_script() for example:
and for styles use the hook "admin_print_styles" and include you styles with wp_enqueue_style for example:
Hope This Helps. |
|||
|
|
|
jQuery should already be loaded, it's used throughout the admin area of WordPress. If you want to include some of your own jQuery, just enqueue the script and set jQuery as a dependancy.
%HANDLE% should be appropriately changed for the handle of your registered page, it's the fifth parameter in This method will ensure the enqueue is only made for your specific custom page, and not every admin page. I also covered using registered handles to selectively enqueue in URLs of plugin resources? Hope that helps.. |
|||
|
|