This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
zencartmods:meta_tags.html [2011/09/06 15:59] daigo created |
zencartmods:meta_tags.html [2011/09/07 23:49] ladyada |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | ===== Adding META Tags to Define Pages ===== | ||
+ | |||
+ | {{:zencartmods:meta.png?|}} | ||
+ | |||
An easy feature to miss in the zen cart code is the ability to customize your meta tags for individual pages. | An easy feature to miss in the zen cart code is the ability to customize your meta tags for individual pages. | ||
Line 17: | Line 22: | ||
So these 3 meta tag fields can be customized, just not through the Admin. | So these 3 meta tag fields can be customized, just not through the Admin. | ||
- | So to create a custom title for a page like "Contact us", | + | So to create a custom title, description, and keywords for a page like "Contact us", |
- | Add this line into /includes/languages/english/contact_us.php | + | Add these lines into /includes/languages/english/contact_us.php |
<code php> | <code php> | ||
define('META_TAG_TITLE_CONTACT_US', 'This is the new custom title for the contact us page.'); | define('META_TAG_TITLE_CONTACT_US', 'This is the new custom title for the contact us page.'); | ||
+ | define('META_TAG_DESCRIPTION_CONTACT_US', 'This is the new custom description for the contact us page.'); | ||
+ | define('META_TAG_KEYWORDS_CONTACT_US', 'Contact, Us'); | ||
</code> | </code> | ||
+ | |||
+ | As always when dealing with meta tags, remember not to go overboard with them! Google won't even look at your keywords, and descriptions are only used to generate the blurb that is given to a user - it will never affect your page ranking. Simple and human-readable is always the best. | ||
+ |