zen-cart在后台SQL直接修改主页的title,keywords和description

2,077 人次阅读
没有评论

共计 1304 个字符,预计需要花费 4 分钟才能阅读完成。

zen-cart在后台直接修改主页的title,keywords和description

上代码:

1、后台—》工具—》安装SQL脚本
执行以下SQL:

[php]
==================================================================
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’, ‘你的网站标题title’, ‘set the home page title’, 1,210, NOW(), NOW(), NULL, NULL),
(NULL, ‘Homepage keywords’, ‘HOME_PAGE_META_KEYWORDS’, ‘你的关键词 keywords’, ‘set the home page keywords’, 1,211, NOW(), NOW(), NULL, NULL),
(NULL, ‘Homepage description’, ‘HOME_PAGE_META_DESCRIPTION’, ‘l你的网站描述 description’, ‘set the home page description’, 1,212, NOW(), NOW(), NULL, NULL);

 

========================================================================

[/php]

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

[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
========================================[/php]

3.在后台的,Configuration>My Store 进行修改。

正文完
 0
评论(没有评论)