Title: customizing column widths
Last modified: August 2, 2019

---

# customizing column widths

 *  Resolved [hashexpert](https://wordpress.org/support/users/hashexpert/)
 * (@hashexpert)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/customizing-column-widths/)
 * Hello! when totals consist of more than 4 figures, because of the likely fixed
   column width the plugin makes a line break after the currency sign [https://prnt.sc/onmk9e](https://prnt.sc/onmk9e)
 * How can I edit the column width? I looked in the template files, but cannot find
   related lines
 * thank you

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [kluver](https://wordpress.org/support/users/kluver/)
 * (@kluver)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/customizing-column-widths/#post-11801453)
 * Hi [@hashexpert](https://wordpress.org/support/users/hashexpert/),
 * The ‘Amount’ column is not a column that is created by default by our free plugin.
   Are you by any chance using our Premium Templates extension? If so, I would have
   to kindly ask you to redirect your question to [support@wpovernight.com](https://wordpress.org/support/topic/customizing-column-widths/support@wpovernight.com?output_format=md).
   We are not allowed to give premium support on this forum. Please also include
   the block you are using in the customizer to add this column.
 * If you have added the column with some custom code to your simple template (or
   created your own custom template) you will have to check the CSS classes of the`
   <th>` and `<td>` elements in the ‘Amount’ column.
 * You can check the CSS classes by switching the output of your document to HTML(
   WooCommerce > PDF Invoices > Status > Output to HTML). You can then inspect the
   elements (for instance in Chrome: right click the element and select ‘Inspect’).
 * If you have found the CSS classes you can change the width of the column with
   the following code snippet:
 *     ```
       add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
       function wpo_wcpdf_custom_styles () {
       	?>
       	.order-details th.your-class-here,
       	.order-details td.your-class-here, {
       		width:20%;
       	}
       	<?php
       }
       ```
   
 * This code snippet should be placed in the functions.php of your child theme. 
   If you haven’t worked with code snippets or functions.php before please read 
   this: [How to use filters](https://docs.wpovernight.com/general/how-to-use-filters/)

Viewing 1 replies (of 1 total)

The topic ‘customizing column widths’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [kluver](https://wordpress.org/support/users/kluver/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/customizing-column-widths/#post-11801453)
 * Status: resolved