Zen Follower
- Join Date:
- Feb 2008
- Posts:
- 200
- Plugin Contributions:
- 0
Desperately need help on this please
For several week now I've been having problems with the meta tags on my home page.
I am using 1.3.7
The title and keywords are fine but the description is just a mixture of the title and keywords whereas I want to say something more specific. I have followed these instructions:
-
open your /includes/languages/english/YOURTEMPLATE/meta_tags.php
-
add a new line anywhere between the <?php and the closing ?> which says:
PHP Code:
define('MY_IMPORTANT_HOME_PAGE_DESCRIPTION', 'blah blah blah blah');
(substituting blah blah blah with your preferred home-page-only description, naturally) -
edit /includes/modules/YOURTEMPLATE/meta_tags.php
around line 138 you have:
PHP Code:
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . str_replace(array("'",'"'),'',strip_tags(HEADING_TITLE)) . SECONDARY_SECTION . KEYWORDS);
change that to:
PHP Code:
define('META_TAG_DESCRIPTION', MY_IMPORTANT_HOME_PAGE_DESCRIPTION); -
Submit to search engines and watch closely
This is an extract from my two files:
- includes/modules/classic/meta-tags.php
f (isset($_GET['manufacturers_id'])) {
$sql = "select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "'";
$manufacturer_metatags = $db->Execute($sql);
if ($manufacturer_metatags->EOF) {
define('META_TAG_TITLE', TITLE . TAGLINE);
define('META_TAG_DESCRIPTION', MY_IMPORTANT_HOME_PAGE_DESCRIPTION);
define('META_TAG_KEYWORDS', KEYWORDS . METATAGS_DIVIDER . str_replace(array("'",'"'),'',strip_tags(HEADING_TITLE)));
} else {
define('META_TAG_TITLE', str_replace('"','', $manufacturer_metatags->fields['manufacturers_name'] . PRIMARY_SECTION . TITLE . TAGLINE));
- includes/ languages/english/clssic/meta tags.php