WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Filter to add text before and after html email?
- AuthorPosts
- 24 January, 2015 at 3:25 pm #7314
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:
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!)
24 January, 2015 at 3:29 pm #7315Apologies I see in Localisation you can add text after email. What about before? Thanks.
25 January, 2015 at 7:00 pm #7334>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
25 January, 2015 at 9:20 pm #7337Ok 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!
26 January, 2015 at 3:25 pm #7376you 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 doif 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 do26 January, 2015 at 7:02 pm #7392Ok thanks i’ll have a read.
- AuthorPosts
- The topic ‘Filter to add text before and after html email?’ is closed to new replies.