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

    (@pomegranate)

    Hello Rik,
    I have just released new version of the plugin (1.5.7), which comes with a few changes in the layout (and classes for the layout elements) so I’m going to base my answer on this version.

    You can apply custom CSS to the PDF invoice templates with the wpo_wcpdf_custom_styles hook. Add the following code to your themes functions.php (note that this is limited to the invoice by the .invoice class!):

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
    function wpo_wcpdf_custom_styles () {
    	?>
    	.invoice .order-number,
    	.invoice .order-date {
    		display: none;
    	}
    	<?php
    }

    You can also create a custom template (following instructions from the settings page for copying files to your child theme) and simply remove the corresponding html. Although the CSS hiding method is less work, it’s also limited in what you can or cannot do – if this is all you want then the CSS works perfectly fine.

    Hope that helps!
    Ewout

    Thread Starter Rikjay

    (@rikjay)

    Thanks Ewout, that worked perfectly! We appreciate your fast response, which was faster for your free plugin than what we often experience with many of the paid plugins we have on our site. The invoice layout in the new 1.5.7 update seems to look better than the previous layout. Regards – Rik

    Plugin Contributor Ewout

    (@pomegranate)

    You’re welcome Rik, glad you appreciate it ??
    I can not promise I will always answer this quickly because paying customers always come first, but I definitely do my best. Thanks for the review!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I hide the Order Number/Date Fields’ is closed to new replies.