Here's a post I found that seems to have worked for my site.
The file I modified with the following info is located at:
/includes/templates/your_custom_template/common/html_header.php
I'm using version 1.3.8
Hope this helps.PHP Code:Originally Posted by www.scifi-models.com
Hi there... I have an easy answer for everyone on this...
Search for this line in your_template/common/html_header.php..
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
Should be near the top, line 27.
Delete the line and replace with the following:
<?php $slashpos = strrpos($_SERVER['REQUEST_URI'],"/");
if ($slashpos === false || $slashpos == strlen($_SERVER['REQUEST_URI'])) {
$thispage = $_SERVER['REQUEST_URI'];
}
else
{
$thispage = substr($_SERVER['REQUEST_URI'],$slashpos+1,strlen($_SERVER['REQUEST_URI'])-1);
}
if ($thispage == "index.php" || $thispage == "index.php?main_page=index" || $thispage == "") {
echo '<meta name="keywords" content="scifi models,star trek resin props,star trek models,movie memorabilia,t-virus prop,enterprise prop,maco,############## movie props,prop reproductions,resin props,battlestar resin prop"/>';
}
else
{
echo '<meta name="keywords" content="' . META_TAG_KEYWORDS . '" />' ;
} ?>
This will replace the dynamic keywords it generates automatically words to a set keywords for the main index.php page, and send the dynamic keywords for products. Hope this helps! Thanks to synavia for her code for checking which page your on!
Zencart ROCKS!




