Hey all,
I'm working on an admin theme, got the CSS to load fine, but I want it to either only load for roles other than 'admin' or to only load for the role of 'author'.
Either will do for my purposes, but I can't seem to get it to work.
The code that I'm using to load the stylesheet is pretty standard, as follows:
function new_admin_css() {
echo '<link rel="stylesheet" type="text/css" href="' . get_settings('siteurl') . '/wp-content/plugins/new-admin/lib/wp-admin.css?version=1.02" />';
}
add_action('admin_head', 'new_admin_css');
I've tried using some basic conditional statements, but it's been several years since I coded any serious PHP and I'm having to slowly re-learn it, so anyone who could point me in the right direction would be much appreciated!
Cx