Easy Automatic Newsletter Lite
Generated Email Background (3 posts)

  1. jon88654
    Posted 2 years ago #


    This is a really great WP plugin! Is there a way to setup the generated email so that there is an image in the background instead of a static color? If so, where would I make this change? Thanks a lot for your help and the awesome plugin!



  2. PillarDev
    Plugin Author

    Posted 2 years ago #

    Currently the style code that controls the background color defined in inline CSS code.

    In the EAN plugin if you open "includes/ean-functions.php" and go to line 426 (could be different since my copy has changes in it).

    You should see a line within the mail_head() function:

    $head = '<div style="width:700px;border:1px solid #EEEDED;background:#F6F5F5;padding:10px 20px;font-family:Arial,Verdana;">';

    Here you can change the background color to use an image instead.

    Refer to the following page if you are not familiar with CSS and setting background image:

    ^^ Please note that in the above page the code refers to the image in current directory where the file you are editing is at. So, if you were to just do something like background-image:url('test.jpg'); then ean-functions.php would be looking for that image in the includes folder.

    I'd recommend placing the image in the images folder within the easy-automatic-newsletter folder.

    Your code should then look something along the lines of:

    $head = '<div style="width:700px;border:1px solid #EEEDED;background-image: url(http://mouyios.com/wp-content/plugins/easy-automatic-newsletter/images/on.png);padding:10px 20px;font-family:Arial,Verdana;">';
  3. archiseek
    Posted 2 years ago #

    Excellent - was just looking for info on how to do this.

    You should stick this in the FAQ

    Actually line #374

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Automatic Newsletter Lite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic