Adding HML Tags to Notification Emails
-
Hi,
I’m just trying to set up the notification emails for a client, and I’ve styled them using a <style> tag, however whenever I insert them into the text editor it keeps wrapping the <style> tags with <p> tags which causes the styling not to work.
Example:
Original Code:
<style>@import url(‘https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Montserrat:wght@400;500;600&display=swap’);td{font-family: ‘Montserrat’, sans-serif;color:#3a3a3a;font-size:14px;font-weight:500;padding:10px 0;line-height:150%;}</style>Gets changed to:
<p><style>@import url(‘https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Montserrat:wght@400;500;600&display=swap’);td{font-family: ‘Montserrat’, sans-serif;color:#3a3a3a;font-size:14px;font-weight:500;padding:10px 0;line-height:150%;}</style></p>I’ve tried installing plugins & adding code to stop the editor adding <p> tags around everything with no luck. Is there anything I can do to stop this?
The page I need help with: [log in to see the link]
- The topic ‘Adding HML Tags to Notification Emails’ is closed to new replies.