Jump to content
freds83

Specify image dimensions

Recommended Posts

Bonjour je cherche a améliorer la réactivité de mon site: tetine-bebe-personnalisee.fr

Sur gt metrix j'ai ça:
 

The following image(s) are missing width and/or height attributes.

1416-home_default/tetine-personnalisee-silhouette-souris-rouge-et-prenom.jpg (Dimensions: 270 x 324) (2 uses)
1537-home_default/accroche-sucette-personnalisee-veux-tu-etre-ma-marraine.jpg (Dimensions: 270 x 324) (2 uses)
1571-home_default/tetine-personnalisee-papillon-et-fleur-verte-et-prenom.jpg (Dimensions: 270 x 324) (2 uses)
1688-home_default/tetine-personnalisee-fleches-et-prenom.jpg (Dimensions: 270 x 324) (2 uses)
1753-home_default/tetine-personnalisee-cils-fille-et-prenom.jpg (Dimensions: 270 x 324) (2 uses)

J'ai regardé du coté de featured product > Display home.tpl 
J'ai modifié cette ligne : 
<img src="{$dis_arr_result.path}tiny/{$main_heading.data.image}" data-org-src="{$dis_arr_result.path}{$main_heading.data.image}" alt="{l s='Featured Offer Banner' mod='tbcmsfeaturedproducts'}">

par 

<img src="{$dis_arr_result.path}tiny/{$main_heading.data.image}" data-org-src="{$dis_arr_result.path}{$main_heading.data.image}" alt="{l s='Featured Offer Banner' mod='tbcmsfeaturedproducts'}"
height="270" width="324">

J'ai ajouté les attributs de taille mais toujous le meme message sur gt metrix 

Si une ame charitable veux bien m'aiguiller 
Merci pour vos futures réponses, bon week end!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More