diff --git a/functions.php b/functions.php index 3a233eb..c8930c7 100644 --- a/functions.php +++ b/functions.php @@ -172,13 +172,15 @@ function be_hidden_meta_boxes($hidden, $screen) { } -function load_custom_wp_admin_style() { +function load_custom_wp_admin_style($page) { wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/css/admin-style.css', false, '1.0.0' ); wp_enqueue_style( 'custom_wp_admin_css' ); wp_register_script('uc-admin-js', get_template_directory_uri() . '/js/admin-style.js', false, '1.0.0'); wp_enqueue_script('uc-admin-js'); + + } add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' ); diff --git a/inc/reg-sidebars.php b/inc/reg-sidebars.php index 03cb911..8aad820 100644 --- a/inc/reg-sidebars.php +++ b/inc/reg-sidebars.php @@ -91,7 +91,7 @@ */ function uc_options_add_page() { add_theme_page( 'Manage Sidebars', 'Manage Sidebars', 'edit_theme_options', 'uc_sidebars', 'uc_sidebars_do_page' ); - remove_submenu_page( 'themes.php', 'widgets.php' ); + //remove_submenu_page( 'themes.php', 'widgets.php' ); } add_action( 'admin_menu', 'uc_options_add_page' );