• Resolved maaike53

    (@maaike53)


    Hi there

    We added some css code to change font colour of 1 line. This worked fine.

    However, when I export it to PDF it then changes colour to a different one. Im pretty sure its a RGB issue of css to PDF. Can you tell me a fix so colour remains the same for export?

    Thanks

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

    (@wpupen)

    Hi @maaike53,

    To make CSS changes in the pdf Invoice please make sure that you are using the following filter that we have:

    function example_serif_font_and_large_address() {
        ?>
        <style>	
                #page {
                    font-size: 1em;
                    font-family: Georgia, serif;
    				<strong>color: red;</strong>
                }
                
                
        </style>
        <?php
    }
    add_action( 'wcdn_head', 'example_serif_font_and_large_address', 20 );

    In the above code snippet, you can apply this for the particular section where you want to change the font color.

    Kind Regards,
    Upendra.

Viewing 1 replies (of 1 total)
  • The topic ‘Font colour changes after PDF export’ is closed to new replies.