add alt="..."

Hello,

I search the forum, but I did not find the answer, being French it is difficult for me to understand everything, so I may have missed ...
If this is the case I apologize in advance

I wish that all the images of the site is an alt = "..."
For example, on the home page, the images of avatar members do not have.

Is there a way to automatically add an alt tag by default?

Thank you in advance

Quote · 2 Dec 2013

Allez dans le module photo, il gère les pouces. Allez dans le répertoire de modèle du module et chercher le thumb.html (ou nom similaire) modèle. Vous souhaitez manipuler la balise d'ancrage là. Si vous souhaitez ajouter une sorte de texte automatiquement, vous devrez créer une nouvelle clé et la fonction de générer le contenu de cette clé.

Que voulez-vous le alt soit, on peut déjà être une clé pour elle.

 

Go into the photo module, it handles the thumbs.  Go into the module's template directory and look for the thumb.html (or similar name) template.  You would manipulate the anchor tag there.  If you want to add some sort of text automatically, you will have to create a new key and the function to generate the contents of that key. 

What would you like the alt to be, there may already be a key for it.

Geeks, making the world a better place
Quote · 2 Dec 2013

You want an empty attribute to have valid HTML?

You can add it here:

templates/base/thumbnail_couple.html

Quote · 2 Dec 2013

 

If you want to add some sort of text automatically, you will have to create a new key and the function to generate the contents of that key. 

 I would think this would work for the avatars right?

title="__usr_thumb_title0__"

alt="__usr_thumb_title0__"

This is from the href tag link to our avatars, as pointed out by Prukner.

Adding that for members would at least insert a tag for all the avatars right.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 2 Dec 2013

I do not know how to thank you!
I managed to do exactly what I wanted!

Thank you to you three!

Laughing

Quote · 2 Dec 2013

 

I do not know how to thank you!
I managed to do exactly what I wanted!

Thank you to you three!

Laughing

 Glad we could help, now I may go through my sites do the same since site analyzers complain about it so much.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 2 Dec 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.