首页 > Ecshop > ecshop页面标题title优化:不使用商店标题
2011十二月27

ecshop页面标题title优化:不使用商店标题

ecshop默认的每个页面的page title构造都是用了上图所示的商店标题,那么在ecshop后台设置了比较商店标题之后,没有页面必然都变的很长。应该变成首页显示商店标题,其他页面的title是:页面标题+上图的商店名称。

修改:找到includes/lib_main.php 143行左右,把

$page_title=$GLOBALS['_CFG']['shop_title'];

改为

$page_title=$GLOBALS['_CFG']['shop_name'];

然后找到241行左右,在

if (!empty($str))
 {
  $page_title  = $str . ‘_’ . $page_title;
  $ur_here .= ‘ <code>&gt;</code> ‘ . $str;
 }

之前,加入

if ($filename == ‘index’) $page_title=$GLOBALS['_CFG']['shop_title'];

这样就行。

我在网站 康比特上就进行了此修改,大家可以看一下 效果 http://www.kangbite.org/

文章作者:sinacost
本文地址:http://www.loveooo.com/128.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

本文目前尚无任何评论.

发表评论