Title: WP Admin Bar CSS origin
Last modified: August 21, 2016

---

# WP Admin Bar CSS origin

 *  [Alex4red](https://wordpress.org/support/users/alex4red/)
 * (@alex4red)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-bar-css-origin/)
 * Does anyone know where I can remove wordpress’ call to the adminbar.css, admin-
   bar.min.css files.
 * I’ve already established a large css file that contributes to this, no need for
   multiple http responses.
 * _[[No bumping](http://codex.wordpress.org/Forum_Welcome#No_Bumping). If it’s 
   that urgent, consider [hiring someone](http://directory.codepoet.com/).]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-bar-css-origin/#post-3882803)
 * Not only is bumping frowned upon here, you do yourself a disservice because many
   people will skip over your post when they see 2 posts, assuming your question
   was answered. You’re lucky I’m a curious sort.
 * You can try unsetting the entry in the global $wp_styles. I don’t know what hook
   to use though. It needs to be late enough that the entry has been added, but 
   before the head section is output.
 *  [DNBrawler](https://wordpress.org/support/users/dnbrawler/)
 * (@dnbrawler)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-bar-css-origin/#post-3882858)
 * I’ve tried this:
 * remove_action(‘admin_print_styles’, ‘print_admin_styles’, 20);
 * and it wouldn’t work.
    Does anyone have a method to remove the admin-bar.css 
   and admin-bar.min.css?
 *  [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * (@pjohanneson)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-bar-css-origin/#post-3882864)
 * What about something like:
 *     ```
       add_action( 'wp_enqueue_scripts', 'xyz_remove_admin_bar_css', 21 );
       add_action( 'admin_enqueue_scripts', 'xyz_remove_admin_bar_css', 21 );
       function xyz_remove_admin_bar_css() {
           wp_dequeue_style( 'admin-bar' );
           wp_dequeue_style( 'admin-bar-min' );
       }
       ```
   
 * Codex: [`wp_dequeue_style()`](http://codex.wordpress.org/Function_Reference/wp_dequeue_style)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WP Admin Bar CSS origin’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 4 participants
 * Last reply from: [Patrick Johanneson](https://wordpress.org/support/users/pjohanneson/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-bar-css-origin/#post-3882864)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
