ZenphotoCMS Forum
Changing ALT text for images - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Changing ALT text for images (/thread-1636.html)



Changing ALT text for images - Blackjackskanz - 2007-09-07

I searched the forms and the hacks but didn't see this. Has anyone found a way to allow for customization of the "alt" text description of an image? By default it is the file name but for Google accounting purposes I would rather be able to give the name of the file with spaces so it is cataloged better. I have noticed that right now Google only catalogs the thumbnails and doesn't seem to match the larger images.

Link
www.blackjackskanz.com/gallery/

Ok, I am tired my brain is in park and I am a PHP noob. But let me ask this after looking at the code for the ablum.

The ALT text is coming from this bit of code:

alt=""

So if I go in to my PHP admin and manually change that value in the database will it stick or will Zen rewrite it or does it only check/write that value at first upload?




Changing ALT text for images - sbillard - 2007-09-07

It will stick.




Changing ALT text for images - Blackjackskanz - 2007-09-07

Booya! Now that is news I like. I guess I should update my files soon so I can do sub albums, too.




Changing ALT text for images - Blackjackskanz - 2007-09-07

Just tried this. It proved to be a much more elegant solution I changed it to pull the description.

alt=""

Zen Photo lets you edit the description in the admin and this makes the match which is better for search engines I read.




Changing ALT text for images - trisweb - 2007-09-07

It lets you edit the title in the admin too, and it doesn't affect the filename or the URL. But, whatever suits you, that works