Changing ALT text for images

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="<?php echo getImageTitle(); ?>"`

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?

Comments

  • It will stick.
  • Booya! Now that is news I like. I guess I should update my files soon so I can do sub albums, too.
  • Just tried this. It proved to be a much more elegant solution I changed it to pull the description.

    `alt="<?php echo getImageDesc(); ?>"`

    Zen Photo lets you edit the description in the admin and this makes the match which is better for search engines I read.
  • trisweb Administrator
    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 :)
Sign In or Register to comment.