View Single Post
  #1  
Old 01-11-2006, 11:26 PM
 
graybeard2k graybeard2k is offline
 

Member
  
Join Date: Dec 2005
Location: Wisconsin
Posts: 22
 

Default How do you modify meta tags generated by templates?

The meta tags that are currently generated for my category and product pages include more than I want them to. Need help figuring out how to modify what is generated.

On my category pages, the meta keywords and meta description include the information I entered in Category Management as well as the site meta keywords and meta description I entered in General Settings, SEO Options. I don't want the site meta keywords and site descriptions on the category pages.

Similarly, on the product pages, the meta description includes the tag for the category and site, when I want it to just pertain to the product. The meta keywords on the product pages include the keywords for the whole category as well as for the site. If possible, I want to generate keywords for just the product, not for the whole category or site.

Here's what the code looks like in my meta.tpl template:

Code:
{assign var="_meta_descr" value="$_meta_descr`$config.SEO.meta_descr`"} {assign var="_meta_keywords" value="$_meta_keywords`$config.SEO.meta_keywords`"} <META name="description" content="{$_meta_descr|truncate:"500":"...":false|replace:'"':"'"}"> <META name="keywords" content="{$_meta_keywords|truncate:"500":"":false|replace:'"':"'"}"> {/if}

Mainly I'm asking how do I modify the code to eliminate unwanted meta tags as described above?

A secondary question has to do with improving the meta keywords for the product pages. I read the post about Carrie's mod. That was posted in 2004 and it almost looks like some parts of it have been incorporated into the latest x-cart (4.0.17). Can I still add that mod or have parts of it been incorporated into x-cart and adding it now would cause problems?

thanks.
__________________
Graybeard, Xcart Gold 4.0.17
Linux
Reply With Quote