wp-admin style css edits – child and or plugin
-
I am trying to style a wp-admin.css element and have attempted to do it as a child theme and as part of a small function plugin without success. The purpose is to style out the .media-menu to display: none
Researching this it seemed the plugin route was the best to go (I have function edits in a twenty ten child and thought this would allow me to aggregate it all together into the single file. I thought I had the initial part working but then it wasn’t; throwing errors so I backed it out and back in. No more errors but it doesn’t function…
The plugin is coded with:`function my_afs_theme_style() {
wp_enqueue_style(‘my-afs-theme’, plugins_url(‘wp-admin.css’, __FILE__));
}
add_action(‘admin_enqueue_scripts’, ‘my_afs_theme_style’);
add_action(‘login_enqueue_scripts’, ‘my_afs_theme_style’);?>
The wp-admin.css file in the plugin contains: `@import url(“../twentyten/wp-admin.css”);
.media-menu {
display: none;
}
.media-frame-content {
border-left: 1px outset #AABBCC;
}`I’d really appreciate if someone can point me in the right direction – if this is simpler just done as a child file or to do this plugin route… thank you
The topic ‘wp-admin style css edits – child and or plugin’ is closed to new replies.