Logo in Print Invoice Header

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #38064
    Faheem Azam
    Participant

      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.

      #38066
      Olly
      Admin & Mod

        which version of wppizza are you using ?

        #38078
        Faheem Azam
        Participant

          Version 3.1.2

          #38079
          Olly
          Admin & Mod

            that’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)

            #38080
            Faheem Azam
            Participant

              what if i update wp-pizza version, will it impact any plugin or settings?

              #38082
              Faheem Azam
              Participant

                also 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.

                #38088
                Olly
                Admin & Mod

                  >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 there

                  #38089
                  Faheem Azam
                  Participant

                    you have not tell me the code that i have to add there…

                    #38091
                    Olly
                    Admin & Mod

                      enter whatever is the appropriate css you need.
                      i.e something like you already posted above

                      width: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)

                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • The topic ‘Logo in Print Invoice Header’ is closed to new replies.