PDA

View Full Version : How do I change the Title Tag?


nbramley
24th of August 2005 (Wed), 11:42
I've asked this before, but never got a response, hopefully I will this time...

When I go to my gallery the title tag reads:

"Gallery Stock Photography by Neil Bramley"

I want to change this and realize that I will have to do it manually in a php file, but which one???

I also want to change the title tag for the photo page when you click and enlarge the image. Right now it shows the image name and then all the keywords related to it... I've heard Google really frowns upon this and will even ban you! :(

Thanks,
Neil

Pekka
24th of August 2005 (Wed), 12:14
I've asked this before, but never got a response, hopefully I will this time...

When I go to my gallery the title tag reads:

"Gallery Stock Photography by Neil Bramley"

I want to change this and realize that I will have to do it manually in a php file, but which one???

In list.php line variable $titletext:

<?php
$titletext = ee_translate_A($translated["exhibition"]) . " " . $exhibition_name . " " . ee_translate_B($translated["by"]) . " " . $exhibition_owner . ", " . str_replace(","," ",ee_html_conversion(trim($exhibition_meta_keywords )));
if ($viewall == "1") $titletext = ee_translate_A($translated["view_all_exhibitions_combined"]);
?>

I also want to change the title tag for the photo page when you click and enlarge the image. Right now it shows the image name and then all the keywords related to it... I've heard Google really frowns upon this and will even ban you! :(

That title text is in photo.php as variable $headertitle:

if (!isset($header)) {
$headertitle = ee_translate_A($translated["images_not_found"]);
} else { $headertitle = ee_html_conversion(trim($titletext)) . ", " . str_replace(","," ",ee_html_conversion(trim($photo_meta_keywords))) . " " . ee_translate_B($translated["by"]) . " " . ee_html_conversion($ownername) . " (in photo gallery " . ee_html_conversion($exhibition_name) . ")";
}

I'm not sure about Google rejecting keywords in title. Search Google for "annapurna helsinki" and you get second hit to gallery photo. Fact is that no one knows exactly how Google works. I have tested it a lot and it prefers pure old html TITLE and H1 tags first, that is why it is important to have some relevant info there, not e.g. "My Personal Gallery" for all photos.

nbramley
24th of August 2005 (Wed), 12:17
Thanks for the quick response Pekka! I'll give that a try...