WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Logo in Print Invoice Header
- AuthorPosts
- 19 June, 2018 at 11:22 am #38064
I want to add logo in header section of WPPizza Templates – Print Order, i am using HTML as format, please let me know how can i add that, although i have added the this code in functions.php file:
add_filter(‘wppizza_filter_html_email_style’, ‘my_html_style_filter’);
function my_html_style_filter($htmlEmailStyle) {
/*set background image in header**/
$htmlEmailStyle[‘mailHeaderBackgroundImage’]=”width:303px;height:53px;background:url(‘logo-file.png’) center center no-repeat transparent;”;
/*if you also want to hide the text there, add this too**/
$htmlEmailStyle[‘mailHeaderBackgroundImage’] = “background:url(‘logo-file.png’) 100px 100px no-repeat;”;
return $htmlEmailStyle;
}but its not working…
please let me know asap.19 June, 2018 at 11:50 am #38066which version of wppizza are you using ?
19 June, 2018 at 1:10 pm #38078Version 3.1.2
19 June, 2018 at 1:14 pm #38079that’s why then
you are trying to use a version 2 filter that does not exist in version 3 (as it’s completely unnecessary)
you should add your css to the relevant template’s css input (i.e in wppizza->templates)19 June, 2018 at 1:18 pm #38080what if i update wp-pizza version, will it impact any plugin or settings?
19 June, 2018 at 1:22 pm #38082also let me know what css code should i add and where in “WPPizza Templates – Print Order” so that logo can be shown on Print Invoice.
19 June, 2018 at 1:30 pm #38088>what if i update wp-pizza version, will it impact any plugin or settings?
usually no, but it also depends on if (or where) you have made any customisations . if you edited core files for example (which you should never do and is the wrong way of doing things) then you will loose your changes>and where in “WPPizza Templates – Print Order”
please refer to the help screen on that page.(that’s the “help” tab at the top right ) it says it all there19 June, 2018 at 1:34 pm #38089you have not tell me the code that i have to add there…
19 June, 2018 at 1:38 pm #38091enter whatever is the appropriate css you need.
i.e something like you already posted abovewidth:303px;height:53px;background:url(‘logo-file.png’) center center no-repeat transparent;
or similar. only you will know (but i also assume you know how css works and how to write it i cannnot provide support for the basics of webdesign like how to write css or html etc)
- AuthorPosts
- The topic ‘Logo in Print Invoice Header’ is closed to new replies.