Closed (fixed)
Project:
ImageCache
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 May 2011 at 11:33 UTC
Updated:
2 Jun 2012 at 22:51 UTC
Hi can you add this line before the render to theme?
It's for SEO improvement, (and because we already entered lot of "Title"):
if ( $alt == '' ) $alt = $title; // For SEO.
Just before:
return '<img src="'. $imagecache_url .'" alt="'. check_plain($alt) .'" title="'. check_plain($title) .'" '. $attributes .' />';
Thanks.
Comments
Comment #1
BarneyLaurance commentedBut what if the user wants to have an empty alt attribute? I think if they've been given a box to fill in the alt attribute and left it empty, then the system should respect that and keep it empty.
Comment #2
fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.