[Phpgedview-talk] Meta description
Brought to you by:
canajun2eh,
yalnifj
From: Brian A. E. <bri...@ya...> - 2008-08-28 06:19:53
|
Google Webmaster Tools likes to have unique meta descriptions. (http://www.google.com/support/webmasters/bin/answer.py?answer=35264&hl=en). An easy way to add this is to make the description equal to the title. I'm sure a much better description could be thought of than this, but this works for the impatient. includes/functions_print.php: - if (!empty($META_DESCRIPTION)) print "<meta name=\"description\" content=\"".preg_replace("/\"/", "", $META_DESCRIPTION)."\" />\n"; + if (!empty($title)) print "<meta name=\"description\" content=\"".PrintReady(strip_tags($title)." - ".$META_TITLE, TRUE)."\" />\n"; |