Customizing admin CSS
-
I want to add some CSS code to the admin theme.
If the color scheme is FRESH then i want to add some style. If not i want to use another CSS file.When doing a print_r($layout); it says classic ( i use that) but it adds the dark.css file.
What am i doing wrong?function css_admin_head() { global $user_ID; $layout = get_user_meta($user_ID, 'admin_color', true); if ($layout = 'fresh') { echo '<link rel="stylesheet" type="text/css" href="' .plugins_url('dark.css', __FILE__). '">'; } else { echo '<link rel="stylesheet" type="text/css" href="' .plugins_url('light.css', __FILE__). '">'; } } add_action('admin_head', 'css_admin_head');
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Customizing admin CSS’ is closed to new replies.