• Resolved timmx

    (@timmx)


    I’d like to change / remove the black bar on my invoice, would this be possible? Also, i want to remove the ‘SKU’ and ‘Gewicht’ from the invoice.

    Image: https://ibb.co/D8WZXvb

    • This topic was modified 3 years, 2 months ago by timmx.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @timmx,

    Try activating this code snippet in your site to achieve waht you want:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Adds custom styles to the PDF documents
     */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    		?>
    		/* Remove SKU and Weight */
    		.sku, .weight {
    			display: none;
    		}
    		/* Reverse the table header colors */
    		.order-details thead th {
    			color: black;
    			background-color: white;
    			border-color: #ccc;
    		}
    		<?php
    }, 10, 2 );

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

    Thread Starter timmx

    (@timmx)

    Thank you! this solved my problem.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @timmx,

    Thanks for confirming that the code snippet worked for you!

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Invoice styling’ is closed to new replies.