質問 > その他 > title変更が急に反映されなくなった |
その他
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
y-mika |
投稿日時: 2017/5/11 13:59
対応状況: −−−
|
常連 登録日: 2017/5/9 居住地: 投稿: 60 |
title変更が急に反映されなくなった フロント機能フォーラムでも質問させて頂きましたが、未解決のためこちらでも質問させて頂きます。
[EC-CUBE] 2.13.1 [レンタルサーバ] さくら [PHP] 5.3.3 [データベース] MySQL 5.1.73 [WEBサーバ] Apache [ブラウザ] IE windows7 [カスタマイズの有無] 各tplファイル phpファイル、cssに変更あり [現象] SEO対策として、title編集を行いました。 一旦は上手くいったものの、数日後にサイトをチェックしたところ、titleの表示が崩れており、原因がわかりません。 キャッシュの削除も行いましたが駄目でした。 編集内容は以下の通りです。 ●site_frame.tpl 既存の<title>~</title>部分を以下に変更 <!--{assign var=top value="`$smarty.const.URL_DIR`index.php"}--> <!--{assign var=list value="`$smarty.const.URL_DIR`products/list.php"}--> <!--{assign var=detail value="`$smarty.const.URL_DIR`products/detail.php"}--> <!--トップページ用--> <!--{if $smarty.server.PHP_SELF==$top}--> <title><!--{$tpl_subtitle|escape}--> | <!--{$tpl_title|escape}--></title> <meta name="description" content="<!--{$arrPageLayout.description|escape}-->" /> <meta name="keywords" content="<!--{$arrPageLayout.keyword|escape}-->" /> <!--商品一覧用--> <!--{elseif $smarty.server.PHP_SELF==$list}--> <title><!--{$tpl_subtitle|escape}--> | <!--{$tpl_title|escape}--></title> <meta name="description" content="<!--{$arrPageLayout.description|escape}-->" /> <meta name="keywords" content="<!--{$arrPageLayout.keyword|escape}-->" /> <!--商品詳細用--> <!--{elseif $smarty.server.PHP_SELF==$detail}--> <title><!--{$tpl_subtitle|escape}--> | <!--{$tpl_title|escape}--></title> <meta name="description" content="<!--{$arrProduct.main_list_comment|escape|regex_replace:"/[\r\t\n]/":""}-->" /> <meta name="keywords" content="<!--{if $arrProduct.comment3}--><!--{$arrProduct.comment3|escape|regex_replace:"/[\r\t\n]/":""|regex_replace:"/、/":","}--><!--{/if}-->" /> <!--その他--> <!--{else}--> <title><!--{$tpl_subtitle|escape}--> | <!--{$tpl_title|escape}--></title> <meta name="description" content="<!--{$arrPageLayout.description|escape}-->" /> <meta name="keywords" content="<!--{$arrPageLayout.keyword|escape}-->" /> <!--{/if}--> ●LC-Page-Index.php ●LC-Page-Products-Details.php tpl_title,tpl_subtitleを追記、編集 サブタイトル|タイトル という表記にしたいのですが、現状では何故か ショップ名|サブタイトル となってしまっています。 一度は サブタイトル|タイトル と上手く表示されるようになったのに、表示が変わってしまった原因がわかりません。 各ファイルの記述に誤りがあるようでしたら教えて頂きたいです。 宜しくお願い致します。 [追記] tplファイルを <title><!--{if $tpl_subtitle|strlen >= 1}--><!--{$tpl_subtitle|h}--> |<!--{/if}--> <!--{$tpl_title|h}--></title> と書き換えてみても上手くいきませんでした。 |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |