• Resolved haidermaa

    (@haidermaa)


    Hi!

    I would like to know how can i show the logo only on the packing list & remove it from the invoice?

    Looking forward to your reply!

    Sincerely,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    You can do this with CSS:

    
    .invoice td.header img { display: none !important; }
    

    More information about applying custom CSS to your template: Using custom styles

    Thread Starter haidermaa

    (@haidermaa)

    Hello!

    Thank you for your reply!

    I have managed to get this code using the guidelines on the link with your CSS code & i got this.

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
    .invoice td.header img { display: none !important; }
    }
        <?php
    }

    Could please let me know if my code is correct?

    Looking forward to your reply!

    Sincerely,

    Plugin Contributor Ewout

    (@pomegranate)

    There’s one accolade too many in there, please try this:

    
    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
        .invoice td.header img { display: none !important; }
        <?php
    }
    

    Let us know if that works for you!

    Thread Starter haidermaa

    (@haidermaa)

    Works like a charm!

    Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can i show the logo only on the packing list?’ is closed to new replies.