• Resolved avisionado

    (@avisionado)


    Hey there,

    Is it possible to change the styling of the invoice number in the pdf?
    I want to display it bold/strong and maybe I want to change the font size.
    I have a custom template and thought it would be possible via the custom style CSS (thought it is the “tr.information span”), but there is no change.

    Thank you for your support!
    Stephan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Are you using the minimal template or the micro template?
    You could print all the dynamically added classes into the pdf to show which CSS class you need to use.

    echo esc_attr( $info_id );

    Use this in minimal template within the loop. Let me know if it helps.

    Thread Starter avisionado

    (@avisionado)

    Hey,
    thank you for your answer. I’m using the minimal template, but unfortunately your code is not working or i put it at the wrong place.
    I put it in the body.php within this loop:

    foreach ( $invoice->get_invoice_info() as $id => $info ) {
    printf( '<span class="%1$s">%2$s %3$s</span>', esc_attr( $id ), esc_html( $info['title'] ), esc_html( $info['value'] ) );
    echo esc_attr( $info_id );
    echo '<br>';
    }
    Plugin Author Bas Elbers

    (@baaaaas)

    For the invoice info it should be below.

    echo esc_attr( $id );

    Thread Starter avisionado

    (@avisionado)

    Thank you, that worked! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change styling of invoice number’ is closed to new replies.