Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.