Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How do you modify meta tags generated by templates?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 01-12-2006, 07:11 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Yes, X-Cart seems to have borrowed from Carrie's mod for the latest version, although X-Cart doesn't give you the ability to manually enter the META data. I'd drop Carrie a line to see what she can do for you.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:31 AM.

   

 
X-Cart forums © 2001-2020