Apply custom css to admin area wordpress !

admin area

I added custom icon for custom post type.. and that was not aligned so i added or hooked custom style to dashboard through this function.

Add this code to functions.php file of your theme..

// custom css for admin area

add_action('admin_head', 'nst_post_style');
function nst_post_style() {
echo '<style>
#adminmenu .menu-icon-nst_testi img ,
#adminmenu .menu-icon-nst_service img{
padding-top: 6px;
}
</style>';
}

 
custom css admin area wordpress

You can do your style for dashboard through that function. 🙂

If this help you then.. Can you buy a Cup of Coffee for me by nst webcreation paypal--OR-- nst webcreation blog coffee cup

Published by

NST

Myself Narender Singh Thakur ( NST ) and i share my Experience/Knowledge and Tricks for folks and beginners to solve their issues while making websites through this Planet.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Click to Chat