Reduce Featured Image size
-
I am testing a Post Notifications email with Automatic Latest Content and Featured Image as padded, for use as a daily news digest email.
The image being selected for use on each post in the email is the full size image associated with the post. If this image is, say, 700 px by 467 px, it is then scaled down to fit into the <td> cell element using max-width on the img element, which for my email layout is 620 px.
My client does not want such large images in the email but something smaller like 200 px.
1. I can override the ‘max-width: 620 px’ by hard coding 200 px into \lib\Newsletter\Renderer\Blocks\Image.php at line 17 but that is not a good idea long term. I did this just to see if it works because I can’t find a way to alter the max-width via CSS in my child theme – I tried
.mailpoet_image a img {max-width: 200 px !important;}
but it didn’t work. Can you suggest something?2. Alternatively, the theme generates a 200 px wide image of the original on image upload. How can I select a smaller image rather than the full size one?
- The topic ‘Reduce Featured Image size’ is closed to new replies.