coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: steve507 on April 21, 2011, 10:17:12 AM

Title: ALT tag for main image missing
Post by: steve507 on April 21, 2011, 10:17:12 AM
I have installed 1.5.12 and though it looks good, it needs to be improved for google image seo: You need to have an alt tag for the main image.
I don't care about alt tags in all other images eg the filmstrip.
See the criteria for an optimised image here ww.toprankblog.com/2010/06/6-tips-image-seo/
Any help much appreciated!
Title: Re: ALT tag for main image missing
Post by: Αndré on April 26, 2011, 03:07:24 PM
Copy function theme_html_picture from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist.

Then, find
alt=\"\"
and replace with
alt=\"{$CURRENT_PIC_DATA['filename']}\"
(twice).