Add CSS into wordrpess admin

Add below code into function.php within the active theme folder.

<?php
add_action('admin_head', 'your_custom_func');
function your_custom_func() {
echo '<style>
/* Add your custom style here */
</style>';
}
?>

Above code will add the style into admin header.
admin_head — Admin header hook. Its hooked by add_action.

Leave a Reply

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