Forum Moderators: Robert Charlton & goodroi
Is it correct to use the keywords in the title tag, though?
like alt="blue widget front view" in one image, alt="blue widget lid" in the next one, etc.
The alt attribute should describe the image for browsers that do not display the actual image (assistive technology browsers for users with disabilities) and someone who is "listening" to their browser does not want to hear "keyword, keyword, keyword..." ten times.
...I would say that it would be acceptable to hear "image, blue widget front view", "image, blue widget lid", etc. The question is whether or not Google looks at it in the same way. If it does not then it should.
g### thinks one of my top keywords is "thumbnail"
The problem with Wordpress galleries is that the CMS auto-generates 'title' from the image file name, so if you have the keyword in the file names x10, you will have x10 keyword used in 'title'.
add_filter('the_content', 'remove_img_titles');
function remove_img_titles($text) {
// Get all title="..." tags from the html.
$result = array();
preg_match_all('|title="[^"]*"|U', $text, $result);
// Replace all occurances with an empty string.
foreach($result[0] as $img_tag) {
$text = str_replace($img_tag, '', $text);
}
return $text;
}
tedster: you don't need to do that in order to rank - you can establish keyword relevance much more simply and naturally.
can you please elaborate?
because in our industry Blue Widgets are highly different from Red Widgets, and in fact if I say Widgets people think Green Widgets first (they are so different we don't carry neither Red nor Green Widgets).
[edited by: Robert_Charlton at 11:19 pm (utc) on May 30, 2012]
[edit reason] fixed posting problem [/edit]
Anchor text, as well as image alt tags, are no longer a sign of what the destination(or image) is about because Google believes they can figure that out on their own.