Formatting HTML Inserted by Shortcode
-
Hello!
I’ve created a custom shortcode integration using the
mailpoet_newsletter_shortcode
filter for Event Calendar Newsletter, and while it works great to insert the HTML for events it does not follow the MailPoet styles for an email.The inline CSS is somehow added into the HTML added to a regular Text block in the MailPoet editor, since copy/pasting the same HTML works as expected:
https://www.dropbox.com/s/h36rylug1ug9gzk/Screen%20Shot%202020-11-11%20at%201.39.38%20PM.png?dl=0
Whereas the HTML inserted using a custom shortcode does not when previewing:
https://www.dropbox.com/s/dwvnrrf081ie4rx/Screen%20Shot%202020-11-11%20at%201.39.19%20PM.png?dl=0
Is there some additional function or filter I can use to apply the styling? People will appreciate it looking pretty and consistent ??
Cheers!
- The topic ‘Formatting HTML Inserted by Shortcode’ is closed to new replies.