• Resolved jaroslavmelichar

    (@jaroslavmelichar)


    Hi, is there a way to hide company name in the header? I would like to keep these details in the footer, but I’m unable to remove it from the header. I have deleted the shop name in the settings but it still included in new invoices.

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

    (@yordansoares)

    Hello @jaroslavmelichar,

    Please add this code snippet to hide the shop name in the documents:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {	
    	?>
    	.shop-name {
    		display: none;
    	}
    	<?php
    }

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

    Please, let me know if it worked! 😉

    Thread Starter jaroslavmelichar

    (@jaroslavmelichar)

    Thanks @yordansoares it worked perfectly!

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

The topic ‘Hide company name’ is closed to new replies.