WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to customize the #adminmenu for the wp-admin, how can i target the class via plugin?

im planning to use below function, but im not sure if this is the correct way of doing so..

add_action('admin_head', 'custom_nav');
function custom_nav(){
    include 'css/customNav.css';

//inside customNav.css
  #adminmenu { //insert styles here }

the main change i want, to make it horizontal across the browser and probably customize it by changing some colors, adding some new pages/links, remove unnecessary stuffs to it and so on..

share|improve this question

You can't include 'css/customNav.css'; but you can try wp_enqueue_style.

The changes you are suggesting are not easy. You can add menus but changing the layout is impossible without rewriting the core.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.