• Resolved ESI5

    (@esi5)


    Hi!

    Is there a way to change the color of the background of the entire email? There doesn’t seem to be access to <body> for the bgcolor attribute. I know you can color a table, but I want the email to be a color and then the table to be white for the text.

    Apologies if you’ve answered this in the past. I went back about 7 pages in the forum and didn’t see the topic anywhere.

    Thank you!

    https://wordpress.org/plugins/email-users/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    The easiest way to do this is wrap the content of your email in a DIV which has a style attribute with the “background-color” set. Something like this:

    <div style="background-color: pink;">
    Your email content goes here!
    </div>

    You may have to toggle over to the text editor from the Visual editor to add the DIV but I just tested it and it works. I also tried adding the following to the email and it comes through in the HTML but the body doesn’t take on the background color. I am not sure why though.

    <style>
    body {
        background-color: #b0c4de !important;
    }
    </style>

    The DIV solution is simple and does work.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I have added the mailusers_html_wrapper filter in v4.7.2 to solve problems just like the one described in this thread. There is an example usage on my web site where the background color of the email is set to light green.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘background color’ is closed to new replies.