Subscribe by email – featured image size

Hi,

Trying to change the featured image size in the email template. I found a previous ticket suggesting that editing the plugin file > subscribe-by-email/inc/mail-templates/mail-template.php would do the trick.

It doesn’t seem to have any effect on this site.

The theme uses blog post featured images at 650 x 275px and they look terrible when cropped to the default 150 x 150px.

Be great if you could point me in the right direction. Cheers!

Ken

  • Kasia Swiderska
    • Support nomad

    Hello Ken,

    Can you tell me how did you changed that line

    <?php the_post_thumbnail( 'thumbnail', $attr = array( 'style' => $featured_image_style ) ); ?>

    thumbnail is name of the size for featured image. It should be replaced by other size name – if your theme uses custom size then its name should be there. Or you can try default sizes: medium, large, full.

    kind regards,

    Kasia

  • keneastwood
    • Design Lord, Child of Thor

    Hi Kasia,

    I haven’t changed that and not sure where you are seeing that?

    In post.php I can see:-

    <?php if ( sbe_show_featured_image() && sbe_mail_template_has_post_thumbnail() ): ?>

    <?php sbe_mail_template_the_post_thumbnail( ‘thumbnail’ ); ?>

    <?php endif; ?>

    I haven’t edited that file other than change a color setting.

    Regards,

    Ken

  • Kasia Swiderska
    • Support nomad

    Hello Ken,

    I asked about changes in subscribe-by-email/inc/mail-templates/mail-template.php file because you wrote that

    It doesn’t seem to have any effect on this site.

    So I assumed that you did changed something there – and I took a quick peek in code to look for thumbnail size – hence that part of code.

    I’m not developer, but I would try to change that line

    <?php sbe_mail_template_the_post_thumbnail( 'thumbnail' ); ?>

    to

    <?php sbe_mail_template_the_post_thumbnail( 'large' ); ?>

    in post.php

    Let me know if this will work.

    If not, can you post here link to thread where did you found that solution and I will see exactly what can be done.

    kind regards,

    Kasia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.