Filter to add text before and after html email?

WPPizza – A Restaurant Plugin for WordPress Support General Support Filter to add text before and after html email?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7314
    maherali
    Participant

      Hi Olly sorry if this is a completely stupid/simple question!

      I have added filters into the functions.php to customize my html emails to look like this:

      EMAIL

      I would like to add text to the top and bottom of the box. I have tried to just edit the template and put it into my theme file but some email clients strip these details and some don’t (so if I go directly onto apple icloud website the text is missing but if I use my iphone to access the email I can see the text).
      I also don’t want to just edit the template so I don’t miss out on future updates etc.

      Are there any filters available to add text to the top and bottom of the email? (I’m sure this is very simple but I don’t know how!)

      #7315
      maherali
      Participant

        Apologies I see in Localisation you can add text after email. What about before? Thanks.

        #7334
        Olly
        Admin & Mod

          >What about before

          there are a ton of filters available you can use to add stuff pretty much wherever you like without ever having to touch the templates

          #7337
          maherali
          Participant

            Ok could you show me an example of a filter to add text before the order details? I’m not the best with filters etc I have only just got my head around basic HTML and CSS styling!

            #7376
            Olly
            Admin & Mod

              you will see actions and filters in the templates
              it is for you to find out which one in particular you need for what you want to do

              if you look in the codesnippets section -https://www.wp-pizza.com/forum/code-snippets/- , you will also find a ton of examples for various things

              generally speaking, you should probably do a bit of reading here though
              https://www.google.co.uk/#q=using+actions+and+filters+in+wordpress
              which is a lot more comprehensive than i will ever be able to do

              #7392
              maherali
              Participant

                Ok thanks i’ll have a read.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Filter to add text before and after html email?’ is closed to new replies.