jquery UI in wordpress admin

This is what I include in my calendar plugin: // Alternative solution for loading scripts only in plugin page if( (is_admin() ) && (isset($_GET[‘page’]))) { // Register scripts and styles add_action(‘admin_init’, ‘wp_eventcal_init’); } function wp_eventcal_init() { // Only load these scripts in Admin wp_deregister_script(‘jquery-ui-core’); wp_register_script(‘jquery-ui’,’http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.js’,array(‘jquery’)); wp_enqueue_script(‘ui-datepicker’, plugins_url(‘js/jquery.ui.datepicker.min.js’,__FILE__)); wp_enqueue_script(‘ui-timepicker’, plugins_url(‘js/jquery.timepicker.js’,__FILE__)); wp_enqueue_script(‘wp-calendar’, plugins_url(‘js/wp-eventcal.js’,__FILE__)); wp_enqueue_style(‘event_cal_css’, plugins_url(‘styles/eventcal.css’,__FILE__)); } Then … Read more

How to disable admin flyout menus?

It’s a bit of a workarround but here you go: function remove_flyout() { echo ‘<style type=”text/css”> .js #adminmenu .wp-submenu.sub-open { display: none; } </style>’; } add_action(‘admin_head’, ‘remove_flyout’); Put it in your functions.php

Admin pages have no content

Try going to Tools then Export and export your WordPress site into an XML file. Then delete your WordPress site off your web server and reinstall it. Go Tools > Import and click on import and select the XML file. Reinstalling WordPress should fix your problem.