Support » Plugin: MailPoet - emails and newsletters in WordPress » Applying styling for custom shortcodes

  • Resolved Brian Hogg

    (@brianhogg)


    Hello!

    I’ve created a custom shortcode for Event Calendar Newsletter as per this tutorial:

    https://kb.mailpoet.com/article/160-create-a-custom-shortcode

    It works great to output the content, but the problem is many email clients will switch to whatever their default font is (ie. Roboto on gmail, Times New Roman on some others). I’m not seeing any way to have the inline font-family styles added to the content within the shortcode. Is there any way to see what the font of the container is, or some other way to have the font styles applied?

    Cheers!

Viewing 1 replies (of 1 total)
  • Plugin Author MailPoet

    (@wysija)

    Hi Brian,

    The font of the newsletter set in the “styles” section of the designer should be taken and then if that font isn’t available for any reason it’ll fall back to the email clients default font.

    However, are you seeing two different fonts entirely? One font for your custom shortcode and one font for the rest of the newsletter?

    Let us know.

    Thanks!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.