AI Verified

Name

Reduce WooCommerce Product Admin Column Widths

About

If you're adding new columns to your Woo Admin Screen, then reducing the size of fields such as Name can be great.

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

WebSquadron

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

14/03/2024

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Reduce WooCommerce Product Admin Column Widths

 
                    
1function custom_admin_product_list_column_widths() {
2 echo '<style>
3 .wp-list-table .column-name { width: 14% !important; }
4 //.wp-list-table .column-sku { width: 10% !important; }
5 //.wp-list-table .column-stock { width: 15% !important; }
6 //.wp-list-table .column-price { width: 10% !important; }
7 // Add more columns as needed
8 </style>';
9}
10add_action('admin_head', 'custom_admin_product_list_column_widths');

0

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

AI Verified

0

Link Manager

Added: 1 year ago

Last Updated: 1 year ago

Adds the Link manage back again

WordPress Admin

AI Verified

0

Display Database Name on Admin Bar

Added: 2 months ago

Last Updated: 2 months ago

This snippet will display your WordPress database name on your admin bar for administrator users.

WordPress Admin

AI Verified

0

Change the recipient of the WordPress PHP fatal error email

Added: 1 year ago

Last Updated: 1 year ago

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

AI Verified

29

Remove Unused Javascript

Added: 1 year ago

Last Updated: 3 weeks ago

Remove Unused Javascript - and improve your Page Speed Insight Score

WooCommerce

Pro Verified

9

Deactivate some WooCommerce Checkout Fields

Added: 1 year ago

Last Updated: 5 months ago

Deactivate some WooCommerce Checkout Fields from showing

Performance

Pro Verified

5

Disable e-icons from Elementor

Added: 1 year ago

Last Updated: 1 year ago

Disable e-icons - and remove the notification from occurring during your Page Speed Insight Check.