Jump to content

[已解决]怎样把首页里的 TITLE 与 店名 互换 - 1.2.5.0


Guest Steven_king

Recommended Posts

请教,

1.2.5.0版本里的店名与每个页面的TITLE 顺序是: 店名-Title,

如何改成像1.3版本里的:Title - 店名。

谢谢!

Link to comment
Share on other sites

备份后编辑/classes/Tools.php第493行:

       $ret['meta_title'] = (isset($metas['title']) AND $metas['title']) ? Configuration::get('PS_SHOP_NAME').' - '.$metas['title'] : Configuration::get('PS_SHOP_NAME');



修改为:

       $ret['meta_title'] = (isset($metas['title']) AND $metas['title']) ? $metas['title'].' - '.Configuration::get('PS_SHOP_NAME') : Configuration::get('PS_SHOP_NAME');

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...