• Resolved Reventlov

    (@reventlov)


    Hi,

    Thank you for this great plugin !

    I have product title like this : My product title <div class=”subtitle”>The subtitle here</div>
    screenshot : https://prnt.sc/OCDKPDJlxaOd

    I am looking to hide the subtitle class in invoices.

    Do you have some snippet which could help me for that ?

    regards.

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

    (@yordansoares)

    Hello @reventlov,

    Please add this code snippet in your site to hide the subtitle in the PDF documents:

    /**
     * WooCommerce PDF Invoices & Packing Slips:
     * Hide product subtitles on PDF documents
     */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    	?>
    	.subtitle {
    		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

    Thread Starter Reventlov

    (@reventlov)

    That works like a charm !

    Thank you !

    (never see so fast useful reply !)

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that it worked!

    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 ‘hide a class in pdf invoice’ is closed to new replies.