Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: ALT tag for main image missing  (Read 2420 times)

0 Members and 1 Guest are viewing this topic.

steve507

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
ALT tag for main image missing
« 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!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: ALT tag for main image missing
« Reply #1 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
Code: [Select]
alt=\"\"and replace with
Code: [Select]
alt=\"{$CURRENT_PIC_DATA['filename']}\"(twice).
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.