Style custom columns in admin panels wordpress

In wordpress, We create many custom post type also we need to display columns in admin panels for each custom post type in a different way but what to do if you need to set some css in this columns. For example. If you want to set width of certain columns in admin panel than what to do. so here is solutions.

Add below line of code in your theme’s functions.php file of your active child theme (or theme) and save the file.

add_action('admin_head', 'custom_column_width');

function custom_column_width() {
    echo '';
}

Leave a Comment

Scroll to Top