9 Mar 2007, 7:31 PM
Zen Follower
- Join Date:
- Sep 2006
- Location:
- West of Ireland
- Posts:
- 169
- Plugin Contributions:
- 0
remove cats from meta keywords (1.3.5)
Hi
Am trying to remove my category titles from showing at the start of my keywords list.
I found this in an old thread (1.3.0), would anyone be able to tell me if it will work for 1.3.5?
Muchos Gracias :)
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,replica movie props,prop reproductions,resin props,battlestar resin prop"/>'; } else { echo '<meta name="keywords" content="' . META_TAG_KEYWORDS . '" />' ; } ?>