Download & Extend

Newsletter name appears at top LH of email - can it be removed?

Project:Simplenews
Version:6.x-1.0-rc6
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi there

Great module and about to do my first mass subscription / emailing.

However, at the top of all newsletters sent the title of the list (ex. Examaple List) appears at the top LHS of the email. Is there anyway to remove and/or suppress this.

For me it just seems unneccessary.

THanks

Comments

#1

Title:List name appears at top LH of email - can it be removed?» Newsletter name appears at top LH of email - can it be removed?

Sorry I should have asked how can I remove the Newsletter name at the top LH side of the email?

Thanks

#2

Try putting this in your template.php file in your theme folder. If you use your administrative theme for editing you might have to put it in there as discussed here #374222: Template files do not work when using admin theme

<?php
function THEME_NAME_HERE_simplenews_newsletter_subject($name, $title, $language) {
  return 
$title;
}
?>

#3

This seems to be a recurring request.

See:
#303137: [Simple Newsletter] Remove precedeing brackets
#500782: Removing the [] from email subject

Would it be possible to allow this portion of the subject to be turned off in the admin panel?

Would the module maintainers be open for a patch?

#4

Sorry i seem to have missed the correct topic on this issue. I thought mcjudd was talking about the subject.

The correct solution is to add a file in your theme: simplenews-newsletter-body.tpl.php
you may need to place it in your admin theme folder if you edit in your admin theme.

then place the following inside

<?php print $body; ?>

Usually this file contains this:

<h2><?php print $title; ?></h2>
<?php print $body; ?>

#5

Status:active» closed (fixed)

Thanks jackinloadup, you answer is the right one.

nobody click here