Warning: date(): Invalid date.timezone value 'HKT', we selected the timezone 'UTC' for now. in /home/mrgcom/public_html/catalog/controller/common/footer.php on line 48 phpcms修改默認title

The One 专一

phpcms修改默認title

phpcms默認的title標籤是{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}

這邊會用到'-'這樣的一個符號

修改文件

1  phpcms/libs/functions/global.func.php

2  源代碼:

$seo['title'] =  (isset($title) && !emptyempty($title) ? $title.' - ' : '').(isset($cat['setting']['meta_title']) && !emptyempty($cat['setting']['meta_title']) ?$cat['setting']['meta_title'].' - ' : (isset($cat['catname']) && !emptyempty($cat['catname']) ? $cat['catname'].' - ' : ''));

修改成你所需要的,像這樣:

$seo['title'] =  isset($title) && !emptyempty($title) ? $title: '';

Powered By 爱你若晴天
身体健康 © 2017 粤ICP备14081548号-1

Article

Shopping

Search

Me