Zencart enables you to easily set the meta tags for products via the admin system.Â But what if you want to change the meta tags for other pages in your site?Â This starts to get a little trickier.Â These instructions are not for the faint hearted.Â And, remember, you should only ever change the original code for your site if you have an up to date backup!Â Don’t panic though, because apart from Page Title, the meta tags are nowhere near as important as they once were.
Firstly, the meta tags are set in different files.
The default META_TAG_TITLE is set in includes/languages/english.php and as you browse through the pages additional text is appended to this title. This additional text is generated in includes/modules/meta_tags.php
The META_TAG_KEYWORDS are set in the /includes/languages/english/meta_tags.php..(custom keywords )
Also, the keywords are generated depending on the product selected in includes/modules/meta_tags.php. These meta tags can be set in the admin area for each product.If these meta tags are not set then the product name is used as meta tag keyword and its description in meta description.
The other meta tags (authors , generator) are hardcoded in the /templates/template_default/common/html_header.php
Initially category names with custom keywords are appended to it.
The SITE_TAGLINE is set in the includes/languages/english.php.
The META_TAGS_REVIEW is set in the includes/languages/english/meta_tags.php and it gets appended to the title.
See, I told you it wasn’t for the faint hearted! For more information on zen cart web design, visit webcare at http://www.webcare.com.au