zencart后台自定义首页title、keywords、description

 zencart配景自定�x首�title、keywords、description插件,zencart首�title、keywords、description默�J是不能在後盾管制的,�@不方便别的人�T操�v,上面的插件�O��容易,然而很适用;

1、後台—》工具—》安�bSQL�”�

�绦腥缦�SQL:
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)

VALUES
(NULL, ‘Homepage title’, ‘HOME_PAGE_TITLE’, ‘你的�W站���}title’, ‘set the home page title’, 1,210, NOW(), NOW(), NULL, NULL),
(NULL, ‘Homepage keywords’, ‘HOME_PAGE_META_KEYWORDS’, ‘你的�P�I�~ keywords’, ‘set the home page keywords’, 1,211, NOW(), NOW(), NULL, NULL),
(NULL, ‘Homepage description’, ‘HOME_PAGE_META_DESCRIPTION’, ‘l你的�W站描�� description’, ‘set the home page description’, 1,212, NOW(), NOW(), NULL, NULL);

2、批改includes\languages\english\meta_tags.php的内容:

// Home Page Only:
define(‘HOME_PAGE_META_DESCRIPTION’, HOME_PAGE_META_DESCRIPTION);
define(‘HOME_PAGE_META_KEYWORDS’, HOME_PAGE_META_KEYWORDS);
define(‘HOME_PAGE_TITLE’, HOME_PAGE_TITLE);
// NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
define(‘HOME_PAGE_TITLE’, HOME_PAGE_TITLE); // usually best left blank

你可能感兴趣的:(zencart自定义标签)