-
AuthorPosts
-
August 31, 2014 at 1:53 pm #311513
Hi :)
When i scan my website with GtMetrix, i have an important error :
Specify image dimensions
The following image(s) are missing width and/or height attributes.
/wp-content/themes/enfold/config-layerslider/LayerSlider/static/img/blank.gif
(Dimensions: 1 x 1) (25 uses)I don’t know in which file this picture is used, and where i can put width & height to fix the problem.
Thanks a lot for your help
September 1, 2014 at 5:25 am #311664Hi mattv7!
Thank you for using Enfold.
Honestly, I don’t think it’s really that important. You can just ignore that one. The blank.gif image is automatically added by the layer slider plugin.
Cheers!
IsmaelSeptember 1, 2014 at 2:49 pm #311840Hi Ismael,
Thank you for your answer. I know it’s not very important, but it’s an error F in GtMetrix and now my slider is done, so i would like to remove this error, could you just give me direction? where to look?
Thanks a lot :)
Cheers!
MatthieuSeptember 3, 2014 at 4:59 pm #313000Hi!
Open up wp-content/themes/enfold/config-layerslider/LayerSlider/includes/slider_markup_html.php and replace:
$data[] = '<img src="'.LS_ROOT_URL.'/static/img/blank.gif" data-src="'.$src.'" class="ls-bg" alt="Slide background" />';with
$data[] = '<img src="'.LS_ROOT_URL.'/static/img/blank.gif" data-src="'.$src.'" height="1" width="1" class="ls-bg" alt="Slide background" />';and:
$data[] = '<img src="'.LS_ROOT_URL.'/static/img/blank.gif" data-src="'.$src.'" class="ls-tn" alt="Slide thumbnail" />';with
$data[] = '<img src="'.LS_ROOT_URL.'/static/img/blank.gif" data-src="'.$src.'" class="ls-tn" height="1" width="1" alt="Slide thumbnail" />';Best regards,
PeterSeptember 4, 2014 at 5:39 pm #313491Hi, if I do this, am I supposed to do it again everytime I update the theme?
September 5, 2014 at 6:03 am #313815 -
AuthorPosts
- You must be logged in to reply to this topic.
