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

    (@yordansoares)

    Hi @aboutwebsites,

    You may try by decreasing the page margin bottom from 3cm to 1cm, and also hiding the bottom spacer with this code snippet:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
        @page {
            margin-bottom: 1cm;
        }
        div.bottom-spacer {
            display: none;
        }
        <?php
    }

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Let me know if it worked! ??

    Thread Starter AboutWebsites

    (@aboutwebsites)

    Thank you,

    I’ve got the code snippet into our functions.php file.

    Where can we decrease the page margin bottom from 3cm to 1cm? I’ve looked through all the settings and can’t find that anywhere.

    Thread Starter AboutWebsites

    (@aboutwebsites)

    Sorry, never mind… I see that the margin and the spacer are both handled by the code snippet. Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extra Blank Page on Every Invoice’ is closed to new replies.