Newsletter css

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 24, 2013   (RSS)

By Toledoh - May 24, 2013

Hi Guys,

I've got custom css styles showing in the WYSIWYG fields on a site, however, these styles also appear automatically in the newsletter message area with the newsletter plugin.  My client expects to be able to use these, but the styles aren't carried accross into the email when they are sent.

What do you suggest is the best way to handle this?

Cheers,

Tim (toledoh.com.au)

By gregThomas - May 24, 2013

Hi Tim,

To include custom CSS you'll have to make a quick modification to the newsletter plugin. If you open newsletterBuilder.php in directory of your newsletter Builder plugin, then around line 836 you should see the head that is sent in the e-mail:

<head>
  <title>$htmlTitle</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" type="text/css" href="http://example.com/cmsAdmin/lib/wysiwyg_custom.css">
</head>

Then you just need to add the the html highlighted in green with a direct link to the stylesheet you want to include.

If you carry out an upgrade to the plugin at a later date you'll have to add this code again.

Let me know if you have any questions.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com