• Resolved Dani

    (@danicasati)


    Hi.
    Is it possible to hide INVOICE label in invoice document?
    Any code snippet to do this?

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

    (@yordansoares)

    Hi @danicasati,

    You can hide the invoice label with this code snippet:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Hide the document label
     */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {	
    	if ( $document_type == 'invoice' ) {
    		?>
    		.document-type-label {
    			display: none;
    		}
    		<?php
    	}
    }, 10, 2 );

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

    Let us know if it worked! ??

    Thread Starter Dani

    (@danicasati)

    If I add code to FUNCTIONS.PHP, the site is broken.

    Thread Starter Dani

    (@danicasati)

    Ok, I did some changes to code in my FUNCTIONS.PHP, the snippet is working now.

    It would be great to add some checkbox in order to show/hide document title in future versions of the plugin.
    Thanks for support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide INVOICE label in document’ is closed to new replies.