Hi all,

I'm about to pull my hair out with Simplenews. I added the Simplenews Template module, and so when I click "Edit Newsletter" and add HTML to the header and footer and save, then send a test mailing, I DO see the header and footer in the e-mail source code, but the body is BELOW the footer! Now, how does that happen?

What I've done is create a table that opens in the header and closes in the footer. The idea is to wrap around the body. However, the table closes above the body, but the body text appears anyway below.

Any ideas what's going on with this?

P.S. I also tried the simplenews-newsletter-footer--tid.tpl.php approach for the body and footer by placing them in my theme directory... but that always generates an error saying that it can't find the footer php include in the "includes" directory. So, I'm stumped on how to theme a Simplenews newsletter.

Comments

garzast’s picture

Here's the deal... the "Simplenews Template" module wouldn't work at all. It kept putting the footer ABOVE the body content. Strange. So, I tried switching to the method where you place the simplenews body and footer tpl files in your theme directory. But THAT wasn't doing anything.

Finally figured out, you have to deactivate the "Simplenews Template" module, and then the tpl files will work!

So... not sure what's going on with Simplenews Template. Now that I've deactivated it, styling the newsletters is a snap. Also, be sure to create a mail.css file in your theme directory (if you've installed the Mime Mail module). You'll have total control then over the newsletter styling.

codemonkey99’s picture

Hi there,

Can you share an example of your final implementation of the styling? I'd like to see just what can be done with the template in the way of styling. Thanks in advance!

str1’s picture

For all those wandering here and searching for how to modify header, body and footer of simplenews and disabling annoying css import of whole website to newsletters:

  1. Copy to your theme's folder from simplenews -module folder » simplenews-newsletter-body.tpl.php
  2. And for footer: simplenews-newsletter-footer.tpl.php
  3. Copy to your theme's folder from mimemail -module folder » mimemail-message.tpl.php
  4. Edit these files to fit your needs

You wont need simplenews template -module for this at all. I spent too much time looking for this info, hope this helps other people

GraemeHuntDesign’s picture

I've been spinning my wheels for days trying to figure out why SimpleNews wasn't recognizing the body tpl file. This completely solved my problem!