Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Double width and height attributes

$
0
0

Replies: 0

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 minutes ago by pavlok.

Viewing all articles
Browse latest Browse all 59525

Trending Articles