[Solved] Images centred in post become left-aligned in newsletter
A number of my posts begin with a center-aligned image at the very top. When these are imported into a newsletter, these images are becoming left-aligned, which I don't want. Any ideas how I can fix this? Thank you.
Comments
@steve_123
You can specify css in your newsletter template to centre align the image.
Newsletters>Themes/Templates - edit your template and add css to it.
Regards
Marietha
How?
How?
There are 2 ways to ensure images are center aligned in newsletters:
- Use the "Email Align" setting when you insert an image from the media library into the post. Choose "Center" which will put
- WordPress adds the CSS class
I hope this helps!align="center"
on the image. See this: http://tribulant.com/docs/wordpress-mailing-list-plugin/3841.aligncenter
on an image when you insert an image center aligned into a post. Simply put.aligncenter
in the CSS in the HEAD of your newsletter template. If you want us to do this for you, please create a ticket: http://tribulant.com/support/So I manually entered align="center" into the html for the image in the post. When I saved the post, WP changed this to align="middle".
But this still made no difference to the newsletter, and the image remains left-aligned.
2. I've tried to find the CSS for my template, but I can't. Where is it?
Sorry!
align="middle"
is not correct, it should bealign="center"
. I wonder why it is automatically changed. http://www.w3schools.com/tags/att_div_align.aspYou can continue to communicate in the ticket if you need assistance.
The solution was to add the
.aligncenter
as CSS to the HEAD of the newsletter template withtext-align:center;
anddisplay:block;
to center align images that were center aligned in the post/page.