ワードプレスでホームページ制作 東広島(西条)|WEB工房0311

EC-CUBE SEO対策 その1

EC-CUBE2.12 2.13.3
各商品詳細ページのタイトルとDescriptionとKeywordsを個別にする

参考URL http://d.hatena.ne.jp/lubystar/20131022/1382420041

いじるテンプレート
data/Smarty/templates/○○○/site_frame.tpl

●title
<title><!–{$arrSiteInfo.shop_name|h}–><!–{if $tpl_subtitle|strlen >= 1}–> / <!–{$tpl_subtitle|h}–><!–{elseif $tpl_title|strlen >= 1}–> / <!–{$tpl_title|h}–><!–{/if}–></title>

<title><!–{if $tpl_subtitle|strlen >= 1}–><!–{$tpl_subtitle|h}–> / <!–{elseif $tpl_title|strlen >= 1}–><!–{$tpl_title|h}–> / <!–{/if}–><!–{$arrSiteInfo.shop_name|h}–></title>

●Description
<!–{if $arrPageLayout.description|strlen >= 1}–> <meta name=”description” content=”<!–{$arrPageLayout.description|h}–>” /> <!–{/if}–>

<meta name=”description” content=”<!–{if $arrProduct.main_list_comment}–><!–{$arrProduct.main_list_comment|escape|regex_replace:”/[\r\t\n]/”}–><!–{/if}–><!–{$arrPageLayout.description|h}–>” />

●Keywords
<!–{if $arrPageLayout.keyword|strlen >= 1}–> <meta name=”keywords” content=”<!–{$arrPageLayout.keyword|h}–>” /> <!–{/if}–>


<meta name=”keywords” content=”<!–{$arrPageLayout.keyword|escape}–><!–{if $arrProduct.comment3}–>,<!–{$arrProduct.comment3|escape}–><!–{/if}–>” />

上部へスクロール
Scroll to Top