• Resolved kds26

    (@kds26)


    Hi, when I add html formatting to my Shop Name e.g. <h3 align=”right”>SHOP NAME</h3> it results in “SHOP NAME”/>” being shown under by logo on the invoice.

    Could you please advise a fix for this. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kds26

    (@kds26)

    For now I have added a space to the Shop Name field. And added my Shop name in the Shop Address field.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @kds26

    Can you show us your field with the data please? You can host your image here.

    Thread Starter kds26

    (@kds26)

    Hi @alexmigf

    Please see screenshot here. https://ibb.co/C2fM8nZ

    The Shop Name is showing under the logo and also where I want it on the right above address details.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @kds26

    We do some cleaning when saving the setting value, that’s why isn’t working as expected in your case.

    Please add the code snippet below:

    add_filter( 'wpo_wcpdf_shop_name_settings_text', function( $text, $document ) {
    	return '<h3 style="text-align:right;">Solar Camping Australia</h3>';
    }, 10, 2 );

    If you never worked with filters, please read this documentation page: How to use filters

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

The topic ‘Shop Name error when adding html formatting’ is closed to new replies.