Home Forums Newsletter Plugin Support Image block isn’t working in composer if you add an URL.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #247500
    torsten.loebe
    Participant

    If you want to add an URL Link to an image block in version 6.5.1, the image won’t show.

    I could fix it with cahnging link 45 in newsletter/emails/blocks/image/block.php

    from
    
    <a href="<?php echo $media->url ?>" target="_blank"><img src="<?php echo $image ?>" width="<?php echo $media->width ?>" height="<?php echo $media->height ?>" border="0" alt="<?php echo esc_attr($media->alt) ?>" style="max-width: 100%!important; height: auto!important; display: inline-block;"></a>   
    
    to
    
    <a href="<?php echo $url ?>" target="_blank"><img src="<?php echo $media->url ?>" width="<?php echo $media->width ?>" height="<?php echo $media->height ?>" border="0" alt="<?php echo esc_attr($media->alt) ?>" style="max-width: 100%!important; height: auto!important; display: inline-block;"></a>

    Could you please fix this for the next version? Thank you.

    #247504
    Stefano
    Keymaster

    Hi, you’re right, the faulty merge created problem in the posts and image block.
    Already fixed for the coming release.

    Adding an url to the image (even using the #) is a temporary workaround.

    Stefano.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.