• selatommy

    (@selatommy)


    Hi,

    Is there a way to give the second page (only packing slip) a different Top Margin?

    Tried with @page and @page:first to set different margins, but did not work…

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hi @selatommy,

    Sadly there isn’t a true easy way of doing this. The method that comes to mind is adding a margin to the 1st element on the first page, which will then add margins on all pages however:

    
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    	?>
    	body.packing-slips { margin-top: 5cm;}
    	<?php
    }, 10, 2 );
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide:
    https://docs.wpovernight.com/general/how-to-use-filters/

Viewing 1 replies (of 1 total)
  • The topic ‘Margin-Top second page’ is closed to new replies.