• Gmail is overriding newsletter theme styles in my automatic emails. I’m using the automatic latest content widget and my posts contain html if that matters. The theme I’m using is a dark theme with light colored text. The problem is Gmail overrides these styles to make the text dark making it almost invisible on the dark background.

    https://wordpress.org/plugins/wysija-newsletters/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter tvanhemert

    (@tvanhemert)

    If your plugin doesn’t work with Gmail that’s kind of a big issue.

    We haven’t heard any complaint about this before. Get in touch with us over here so that we can have a better look at this: https://support.mailpoet.com/wordpress-forums/

    Thread Starter tvanhemert

    (@tvanhemert)

    Instead of giving admin access how about you give me a gmail address and I send you a preview email? I’m sure you just want to help but I’d rather not give admin access if I can avoid it.

    Here is a screen shot from the editor

    Here’s how it looks in the browser

    And here’s how it looks in Gmail

    As you can see Gmail adds the class .hx with a color of #222

    What file in mailpoet formats the email?

    Hi,

    Sorry for the confusion. Unfortunately Gmail overrides CSS and there often is not much you can do about it. Can you try adding !important to all the CSS in your theme code?

    Thread Starter tvanhemert

    (@tvanhemert)

    Adding !important to style.css in the theme does nothing.

    As I mentioned before my posts contain html and if I add style information inline such as <div style=”color:#ffffff !important”> to the posts and edit wysija-newsletters/helpers/articles.php line #94 to include ‘<div>’ in the array $tags_not_being_stripped then it will work in gmail but I don’t know if excluding ‘<div>’ from being stripped will cause other issues and I would also need to update all of my posts to include inline styles instead of using the MailPoet theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Gmail overriding styles’ is closed to new replies.