X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How do you modify meta tags generated by templates? (https://forum.x-cart.com/showthread.php?t=19209)

graybeard2k 01-11-2006 11:26 PM

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.

balinor 01-12-2006 07:11 PM

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.


All times are GMT -8. The time now is 01:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.