Support

Account

Home Forums Front-end Issues WordPress 4.4 responsive images Reply To: WordPress 4.4 responsive images

  • Thank you for replying NatHobson!

    I’m not really sure I understand exactly how the lazysizes-plugin works/will help me but I trust you do 😉 Will it handle the sizes attribute for me?
    Right now I’m using this wordpress plugin for lazy load that I found works for custom fields which I then guess I won’t need anymore?
    https://sv.wordpress.org/plugins/lazy-load-enhanced/

    Right now the code I use to load the image field looks as follows:
    <?php echo wp_get_attachment_image(get_field('hero_image_3'), 'full', 0, array('class' => 'bilder2')); ?>

    I can’t figure out how to implement the code you provided in order for it to work on my website. The ID parameter is not in the code I use right now. Am I right thinking this is the issue?