• Resolved Pavlo Kr.

    (@pavlok)


    Hello.
    I had a problem with double width and height attributes
    Example:
    <li style="display: block; width: 100%;" class="slide-14794 ms-image"><a href="http://esteticgroup.com.ua/product_brand/idhair/" target="_self"><img width="1500" height="1050" src="https://esteticgroup.com.ua/wp-content/uploads/2018/06/idhairbelonger2.jpg" class="slider-1208 slide-14794" alt="" height="250" width="595" rel="" title="idhairbelonger2" srcset="https://esteticgroup.com.ua/wp-content/uploads/2018/06/idhairbelonger2.jpg 1500w, https://esteticgroup.com.ua/wp-content/uploads/2018/06/idhairbelonger2-300x210.jpg 300w, https://esteticgroup.com.ua/wp-content/uploads/2018/06/idhairbelonger2-768x538.jpg 768w, https://esteticgroup.com.ua/wp-content/uploads/2018/06/idhairbelonger2-1024x717.jpg 1024w, https://esteticgroup.com.ua/wp-content/uploads/2018/06/idhairbelonger2-600x420.jpg 600w" sizes="(max-width: 1500px) 100vw, 1500px" /></a></li>

    To solve it I added next lines

    unset($attributes['width']);
    unset($attributes['height']);

    in the file /wp-content/plugins/ml-slider/inc/slide/metaslide.class.php
    before
    return wp_get_attachment_image(
    at the line 216

    Please fix it in future version of this plugin.
    Thanks.

    • This topic was modified 7 years, 6 months ago by Pavlo Kr..
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Double width and height attributes’ is closed to new replies.