0

I have a cs-cart project which display page titles in a way I do not want (well, in a way the client does not like).

I want it to display: On Home Page: Company Name On Other Pages: Comapny Name | Page Title (i.e. Company Name | About Us ), etc.

I have the following script:

    {strip}
<title>

{if $page_title && $controller != 'products' && $controller != 'categories'}
        {$page_title|escape:"html"}
{else}
        {foreach from=$breadcrumbs|array_reverse item=i name="bkt"}
                {if !$smarty.foreach.bkt.last}{if !$smarty.foreach.bkt.first} - {/if}{$i.title|unescape|strip_tags|escape:"html"}{/if}
        {/foreach}
        {if !$skip_page_title}{if $breadcrumbs|count > 1} - {/if}{$location_data.title|escape:"html"}{/if}
{/if}

</title>
{/strip}

How to update the script to display what I want? You help is greatly appreciated.

4

1 回答 1

0

有两种方法可以做到这一点: 1) 每个位置可以有自己的标题: 对于 3.x http://screencast.com/t/Le70K95A1W 对于 4.x http://screencast.com/t/MJP76TwSbT

因此,您可以为不同的位置(主页、购物车页面等)定义不同的标题

2) 每个对象(页面、产品、类别)都有个人 SEO 设置。例如“页面”:ttp://screencast.com/t/WqnNJBxyKO

对于每个页面,您可以指定个人标题。

于 2014-03-07T07:33:58.040 回答