• charliemp

    (@charliemp)


    I want to hide the text that is entered in the footer field on the Settings page on the delivery note but not on the invoice.

    The font size of the footer is also slightly smaller than the font size of the rest of the text but I can’t find where the font size is specified separately for the footer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Upendra Kapse

    (@wpupen)

    Hello @charliemp,

    To hide the Footer text from the delivery note and to increase the font size of the footer note in the Invoice please add the following code snippet to the functions.php file of your child theme or add it as a snippet using the Code Snippets plugin on your site:

    function example_price_free_delivery_note() {
        ?>
        <style>
                
                .delivery-note .colophon-imprint {
                    display: none;
                }
    		
    			.invoice .colophon-imprint {
    				font-size: 14px;
    			}
              
            </style>
        <?php
    }
    add_action( 'wcdn_head', 'example_price_free_delivery_note', 20 );

    You can adjust the font size in the above code according to your requirement.

    Kind Regards,
    Upendra

    Thread Starter charliemp

    (@charliemp)

    Hi

    Thanks for the suggestion, I tried it but it broke the whole website.

    • This reply was modified 3 years ago by charliemp.
    Thread Starter charliemp

    (@charliemp)

    Hi

    Any more thoughts on how to make it work without breaking the website?

    Plugin Support Upendra Kapse

    (@wpupen)

    Hi @charliemp,

    The code snippet I sent you seems to be working fine for me for both the changes. Can you please make sure you have applied the correct code?

    Like I said you can add it as a snippet using the Code Snippets plugin on your site.

    If the issue persists, can you tell me which error you are getting while the website breaks? I think you will be able to see a fatal error under WooCommerce>> Status>> Logs section when the site breaks.

    Kind Regards,
    Upendra.

    Thread Starter charliemp

    (@charliemp)

    Adding it using Code Snippets rather than direct into the functions.php file means that it doesn’t crash the site.

    However changing the font size in the code makes no difference and it doesn’t remove the footer text from the delivery note.

    Can you help further?

    Thanks

    Martin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Footer’ is closed to new replies.