Title: Admin theme plugin &#8211; CSS problem
Last modified: August 19, 2016

---

# Admin theme plugin – CSS problem

 *  [Martin](https://wordpress.org/support/users/mcundric/)
 * (@mcundric)
 * [15 years ago](https://wordpress.org/support/topic/admin-theme-plugin-css-problem/)
 * Hello.
 * I want to do admin theme plugin. I follow the instructions in the Codex [http://codex.wordpress.org/Creating_Admin_Themes](http://codex.wordpress.org/Creating_Admin_Themes)
 * But my css code does not work. I think the problem is that I do not know how 
   to insert a link to the css file in <head>
 * In plugin folder I created two documents:
 * eyn-liveadmin-wp-theme.php -> [http://pastebin.com/huSCTzKb](http://pastebin.com/huSCTzKb)
 * wp-admin.css -> [http://pastebin.com/Ch6eTYpM](http://pastebin.com/Ch6eTYpM)
 * Please help me fix this.
 * THANX!

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

 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [15 years ago](https://wordpress.org/support/topic/admin-theme-plugin-css-problem/#post-2066370)
 * You need to enqueue the stylesheet, and then hook it into the appropriate hook.
   See the [“Enqueueing Admin CSS” section of my Settings API tutorial](http://www.chipbennett.net/2011/02/17/incorporating-the-settings-api-in-wordpress-themes/6/).
 * Note: you will want to use the `admin_print_scripts` hook, if you are modifying
   the CSS for the Admin UI as a whole. _Be very judicious when hooking into admin
   output globally like this._
 *  Thread Starter [Martin](https://wordpress.org/support/users/mcundric/)
 * (@mcundric)
 * [15 years ago](https://wordpress.org/support/topic/admin-theme-plugin-css-problem/#post-2066658)
 * Hi Chip, and thanks for the reply.
 * I have changed my code to. php document -> [http://pastebin.com/6sAFsLwP](http://pastebin.com/6sAFsLwP)
 * But CSS is still not working. This is my first plugin and my php knowledge is
   very low. Can you please look at my code and tell me where I got the error.
 * Thanx

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

The topic ‘Admin theme plugin – CSS problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Martin](https://wordpress.org/support/users/mcundric/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/admin-theme-plugin-css-problem/#post-2066658)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
