I found a solution that works for me!
I dropped this code in functions.php :
add_action('admin_head', 'my_column_width');
function my_column_width() {
echo '<style type="text/css">';
echo '.column-mycolumn { text-align: center; width:60px !important; overflow:hidden }';
echo '</style>';
}
Related Posts:
- Pods CMS: How to add custom column to Adnvanced Content Type
- One Site. One Theme. Multiple Stylesheets without plugins?
- Use conditionals with wp_enqueue_style to attach stylesheet according to post type displayed
- Adding ‘menu order’ column to custom post type admin screen
- How do I set the default admin sort order for a custom post type to a custom column?
- Replacing the title in admin list table
- Make custom column sortable
- Any way to make posts inherit properties/taxonomies through a single assigned taxonomy
- Custom sortable columns ordered by meta-value?
- Add “Last Edited by” column to custom post type list table
- How to add custom columns to Custom Post Type admin screen
- How to add a CSS class to every image in a Custom Post Type
- Column sorting with emtpy meta values
- manage posts custom column is not populating data from meta boxes
- how do I group content in magazine-style ‘issues’?
- Custom admin columns for ALL custom post types
- order of date column in custom post type
- Add custom column to custom post type overview in backend
- CSS for Custom Post Types
- Downsides to not using built-in “Posts” post type?
- Is it possible to insert text into an html tag using functions.php?
- Custom Post Type, Two categories, Two columns with Pagination
- How do I create a custom post type for a training CMS in WordPress?
- Replacing the title in admin list table
- Remove Post Page “View Post” Link
- How can I add columns to custom post tables
- How do you use JavaScript to detect the homepage
- Custom Post Types: Custom columns with Title submenu?
- How to show custom (checkbox) field value in admin post list?
- Adding menu_order to CPT admin page
- How could I create a ‘private comments’ section on a custom post type?
- Custom post admin filtering by post meta (the date)
- Admin Column Text Positioning
- How do I sort a custom post type admin column using two meta keys?
- Add Post Url to Manage Edit Screen
- Add the current menu item CSS class to a custom page type archive in WordPress menu
- different template for first and second level custom post page
- Problem adding column to WC Subscription [closed]
- Change post featured image on hover
- Custom post type and body_class: Remove “blog” class
- Is possible add class for last post of Custom Post Type?
- Enqueueing scripts and styles multiple CPTS
- how to check if custom post type column already exists?
- Adding HTML tags or css classes to admin columns
- Customize my custom taxonomy table in Admin panel
- How to set up an entity (post-type?) with many dependent entities (more post-types?)
- Extending AZIndex plugin to use custom post types and custom taxonomies
- WordPress CMS Inquiry
- Custom post type content using custom fields without template
- WP CPT Custom Sortable Column in Admin Dashboard Sort Order Random
- How to show first name and last name in custom post type columns
- Order a custom post type admin screen by a second custom post type title
- Associating two custom post types
- 4 column-loop ordered alphabetically with entries grouped (and labeled) by their first letter
- Custom posts type for individual pages?
- Custom columns doesn’t appear in custom post type
- How can I use this code on a custom database table?
- Add custom CSS class to custom post type
- Problem with $post_id object’s property
- Give each post type label a different color?
- How can I include active content in a custom post type?
- Displaying custom post types as a gallery
- CPT Columns doesn’t show categories
- Getting post attchment URL to populate a CPT Admin Page Column
- Custom Columns for Custom Post Type Manager
- Trying to add a class to post links
- Posts are not rendering perfectly [closed]
- Make a custom column sortable by a value from a different custom post type
- Questions regarding add_meta_box()
- Sorting custom post types in edit.php : Post disappear
- Multiple Stylesheets For Post and post type?
- What is the best way to manage small blocks of content on my home page?
- Custom sortable column with WPAlchemy
- Remove filter and view options from custom post type edit screen
- Sortable column with custom data by date
- Add Content Column to Custom Post Type backend
- Hide Published text from custom post types column
- custom filtering admin columns
- DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front
- Custom sorting in post columns by ACF Pro Select Field
- Custom post type not pulling CSS
- Is it possible to link an external stylesheet, exclusively within a specific single post template?
- Loading a stylesheet on a specific page [duplicate]
- Columns depending on posts count
- Making my custom column sortable
- Change Background Color For CPT Template
- Default custom column to off
- Change column of row action (Quick Edit) links in WP_List_Table
- Can’t open Custom Post Types Link in navigation
- Make custom post type column sortable
- Multiple search template with separate stylesheets
- Multiple Block Quotes without using HTML
- How to insert post into a page?
- Split custom post list into two columns
- How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?
- Woocommerce product page is not showing custom css [closed]
- WordPress custom post type odd and even styling [duplicate]
- How do I target a links only in a custom post type and only in the p tag?
- Add a background image into a post [closed]
- how to display custom taxonomies in front page