Closed daprela closed 8 years ago
The template needs some refinements. Please give it a look
I think it's bad ass. My favorite so far.
@daprela
I'm running some tests with click tracking and noticed that the test email loses a background color: http://screencast.com/t/O9Cg5CbIL
What email client are you using?
thunderbird
Also I'm trying to figure this one out: https://github.com/inboundnow/inbound-mailer/blob/develop/templates/photographer/index.php#L91
If $header_bg_image is empty the the url() inline styling is causing the WordPress instance to load twice. I'm not sure why. I wouldn't spend any time on this unless you intuitively know why it would do that. It's causing issues with email link tracking. I'll spend time looking into this tomorrow. Mark it down here for now.
I have no idea but to fix the issue I could simply load a default image in the header in case it is empty, what do you think?
Re: the background issue, it could be that Thunderbird doesn't like the background-color style attribute. Can you please try adding this
background="<?php echo $cta_bg_color; ?>"
at the end of this line as a single attribute, outside the style
attribute and test the email again
https://github.com/inboundnow/inbound-mailer/blob/develop/templates/photographer/index.php#L139
By the way, the issue with the $header_bg_image empty doesn't happen in my installation, tested in chrome and Firefox. I was thinking at this point to use a ternary operator to add or not the whole attribute background-image and also background-size. This should eliminate the problem
Looks like our link rebuilder was replacing all instances of # with craziness. Colors are working now.
Found out the reason of the double load:
background as an html attribute causes a double load. We'll have to avoid it in the future: https://bugs.php.net/bug.php?id=10599
Strange strange!
Where necessary the ternary operator is a good solution in my opinion. The attribute is added only when there is an image url, so no risk of double loading
to make sure we are sync'd:
Nein (throws page load twice) `
I'm adding this new email template. This template is pretty sophisticated, and can be even more powerful by adding more color options. My suggestion would be to 'reduce' this template to more basic options like eliminating the feature box on top, the image background on the header, the advertising banner in the sidebar, and put those options in a premium version of the template