• Resolved ericsmeets

    (@ericsmeets)


    Hello, I am looking to change the font size of only the invoice address and shipping address with the custom css option. What code can I use for this please?

    Or is there another way of doing this?

    Thanks!

    • This topic was modified 2 years, 10 months ago by ericsmeets.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @ericsmeets

    You can do it using the code snippet below:

    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    	?>
    	.address {
    		font-size: 11pt;
    	}
    	<?php
    }, 10, 2 );

    If you never worked with actions/filters, please see this documentation page: How to use filters

    Thread Starter ericsmeets

    (@ericsmeets)

    Hi, that does not seem to work. I tried this code:

    .address {
    	font-size: 3pt;
    }

    And that works to change the address part size of the pdf. So what I actually need is a replacement for the .address part that changes only the invoice address and shipping address.

    Plugin Contributor alexmigf

    (@alexmigf)

    By Invoice address you mean Shop Address?

    Plugin Contributor dwpriv

    (@dwpriv)

    Hey Eric,

    Could you send us an email at [email protected] regarding this issue, please? We have to do this since WordPress does not allow support for premium plugins on this forum.

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change font size of invoice address and shipping address’ is closed to new replies.