Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @diamanta29

    By default the billing address section as an auto width, only the shipping address and the order data have fixed width. That said, you need to change the values of the last two like this:

    add_action( 'wpo_wcpdf_custom_styles', function ( $document_type, $document ) {
    	?>
    	.shipping-address {
    		width: 20% !important;
    	}
    	.order-data {
    		width: 30% !important;
    	}
    	<?php
    }, 10, 2 );

    If you never worked with actions/filters, please read this documentation page: How to use filters

    Thread Starter diamanta29

    (@diamanta29)

    Hi Alex thanks you very much works perfectly.

    However it only works for the invoice list. I also need the code to work for pack list.

    Is there any code I’m missing?

    Rgds, Dia

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @diamanta29

    Sorry, please try this instead:

    add_action( 'wpo_wcpdf_custom_styles', function ( $document_type, $document ) {
    	?>
    	.packing-slip .billing-address {
    		width: 25%;
    	}
    	.packing-slip .order-data {
    		width: 35%;
    	}
    	<?php
    }, 10, 2 );

    Let me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Increase Address width in packslip’ is closed to new replies.