My cell:
<td style="color:#fff!important;text-decoration:none!important;">{TITLE}</td>
@webmistress666,
{TITLE} only contains an anchor in the paid version, are you using Subscribe2 HTML?
Negative to both. I’m not using paid version, just the free version, and {TITLE} is rendering the anchor, using a permalink as the URL, and the Title as the text. It’s plain text when used in the Subject, but once it’s in the content, it becomes a link on its own.
I’m guessing this is it, on line 505 in ‘class-s2-core.php’?
// we set these class variables so that we can avoid
// passing them in function calls a little later
$this->post_title = "<a href=\"" . get_permalink($post->ID) . "\">" . html_entity_decode($post->post_title, ENT_QUOTES) . "</a>";
@webmistress666,
Okay, we the solution I was thing of won’t work then if you are using the free version.
Have you tried nesting a span element inside the table elements like this:
<td><span style="color:#fff!important;text-decoration:none!important;">{TITLE}</span></td>
Unfortunately, no. The inline CSS must be on the anchor or the anchor’s child element to have effect.
See fiddle:
http://jsfiddle.net/xn3BU/1/
@webmistress666,
In that case you can inject some custom CSS into the email header with a little plugin to Subscribe2 like this:
function custom_s2css_filter($email) {
if ( empty($email) ) { return; }
list($first, $second) = explode('</head>', $email, 2);
$email = $first . "<link rel=\"stylesheet\" href=\"http://www.mysite.com/custom_style.css\"></head>" . $second;
return $email;
}
add_filter('s2_html_email', 'custom_s2css_filter');
Of course you then need to create the right CSS to apply to the final email.