Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
How to adjust the column size of WooCommerce admin products table

I have added some extra columns in my WooCommerce admin products list but the columns are not adjusted according to values and I have the following problem enter image description here

How can I change CSS of the table

table.fixed {
   table-layout: fixed;
}
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

add_action('admin_enqueue_scripts', 'wc_product_list_css_overrides');

function wc_product_list_css_overrides() {
    wp_add_inline_style('woocommerce_admin_styles',
            "table.wp-list-table .column-sku{ width: 9%; } table.wp-list-table .column-name{ width: 20%; } table.wp-list-table .column-is_in_stock{ width: 7%; }");
}

Please take the corresponding column name and enter the width value desired like the example given.

Add the above code in your active theme functions.php file

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!