Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: ALT tag for main image missing  (Read 2491 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: 15764
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.018 seconds with 20 queries.