ECMALL SEO 問題的解決方法

首頁

目前有

<title> </title>
<meta name="Keywords" content=" " />


缺乏:網站描述
<meta name="Description" content=" " />


商品缺乏:title=" " 描述

對於搜索引擎收錄推廣極爲不利,建議增長,另外最好還能增長首頁自定義文章分類。


修改後實現效果代碼以下:


  <title>禮通商務禮品,深圳禮品商務禮品供應商,深圳商務禮品批發,禮品定製服務商</title>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <meta name="Keywords" content="禮通商務禮品,深圳禮品公司,深圳禮品商務禮品供應商,深圳禮品商務禮品網,深圳商務禮品批發團購,深圳禮品定製" />
  <meta name="Description" content="禮通商務禮品,深圳禮品商務禮品供應商,深圳商務禮品批發,禮品定製服務商" />



        <a href="index.php?app=goods&amp;id=12" target="_blank" ><img src="./temp/thumb/91/c7/91c7eb1731fe387a60f8e86bfdedff5f39.jpg" alt="佳能450D 單反數碼相機" /></a>
        <p class="infolist"><span class="name"><a href="index.php?app=goods&amp;id=12" title="佳能450D 單反數碼相機" target="_blank" >佳能450D 單反數碼相機</a></span><span class="price" >¥5,655.00</span></p>




解決方法:


1、添加 Description 網站描述

修改:includes/models/mod.page.php


        /* 生成keywords */
        $keywords = &$head->createChild('meta');
        $keywords->attributes = array('name'=>'Keywords', 'content'=>'{$meta_keywords}');

下面添加:

     /* 生成Description */
        $keywords = &$head->createChild('meta');
        $keywords->attributes = array('name'=>'Description', 'content'=>'{$title}');









2、商品添加 title=" "


●首頁添加 title="{$rgoods.goods_name|escape}"

修改:themes/mall/resource/custom_module.html

    <!-- {if $custom_module.{index}.image_goods} -->
    <ul class="thumblist clearfix">
    
      <!-- {foreach from=$custom_module.{index}.image_goods item=rgoods} -->
      <li>
        <a href="{url src=index.php?app=goods&id=$rgoods.goods_id}" target="_blank" ><img src="{image file=$rgoods.default_image width=100 height=100}" alt="{$rgoods.goods_name|escape}" /></a>
        <p class="infolist"><span class="name"><a href="{url src=index.php?app=goods&id=$rgoods.goods_id}" target="_blank" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>{$rgoods.goods_name|truncate:24|escape}</a></span><span class="price" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>{$rgoods.store_price|price}</span></p>
      </li>
      <!-- {/foreach} -->
    </ul>
    <!-- {/if} -->
    <!-- {if $custom_module.{index}.word_goods} -->
    <ul class="textlist clearfix">
      <!-- {foreach from=$custom_module.{index}.word_goods item=rgoods} -->
      <li><a href="{url src=index.php?app=goods&id=$rgoods.goods_id}" target="_blank" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>{$rgoods.goods_name|escape|truncate:18}</a></li>
      <!-- {/foreach} -->
    </ul>
    <!-- {/if} -->
    <!-- {if $custom_module.{index}.hot_goods} -->
    <div class="toplist" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>
        <h4>{$lang.top_hot}</h4>
        <ol {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>
          <!-- {foreach from=$custom_module.{index}.hot_goods item=rgoods} -->
          <li><p><a href="{url src=index.php?app=goods&id=$rgoods.goods_id}" target="_blank" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>{$rgoods.goods_name|escape|truncate:20}</a></p></li>
          <!-- {/foreach} -->
        </ol>
    </div>
    <!-- {/if} -->

改爲:

    <!-- {if $custom_module.{index}.image_goods} -->
    <ul class="thumblist clearfix">
    
      <!-- {foreach from=$custom_module.{index}.image_goods item=rgoods} -->
      <li>
        <a href="{url src=index.php?app=goods&id=$rgoods.goods_id}" target="_blank" ><img src="{image file=$rgoods.default_image width=100 height=100}" alt="{$rgoods.goods_name|escape}" /></a>
        <p class="infolist"><span class="name"><a href="{url src=index.php?app=goods&id=$rgoods.goods_id}" title="{$rgoods.goods_name|escape}" target="_blank" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>{$rgoods.goods_name|truncate:24|escape}</a></span><span class="price" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>{$rgoods.store_price|price}</span></p>
      </li>
      <!-- {/foreach} -->
    </ul>
    <!-- {/if} -->
    <!-- {if $custom_module.{index}.word_goods} -->
    <ul class="textlist clearfix">
      <!-- {foreach from=$custom_module.{index}.word_goods item=rgoods} -->
      <li><a href="{url src=index.php?app=goods&id=$rgoods.goods_id}" title="{$rgoods.goods_name|escape}" target="_blank" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>{$rgoods.goods_name|escape|truncate:18}</a></li>
      <!-- {/foreach} -->
    </ul>
    <!-- {/if} -->
    <!-- {if $custom_module.{index}.hot_goods} -->
    <div class="toplist" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>
        <h4>{$lang.top_hot}</h4>
        <ol {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>
          <!-- {foreach from=$custom_module.{index}.hot_goods item=rgoods} -->
          <li><p><a href="{url src=index.php?app=goods&id=$rgoods.goods_id}" title="{$rgoods.goods_name|escape}" target="_blank" {if $custom_module.{index}.content_fontcolor}style="color:{$custom_module.{index}.content_fontcolor};"{/if}>{$rgoods.goods_name|escape|truncate:20}</a></p></li>
          <!-- {/foreach} -->
        </ol>
    </div>
    <!-- {/if} -->

●商品列表:商品添加title="{$goods.goods_name|escape}"

修改:themes/mall/resource/goods_list.html

      <dd class="name"><a href="{url src=index.php?app=goods&spec_id=$goods.spec_id}" target="_blank">
{$goods.goods_name|escape}</a></dd>

改爲:

      <dd class="name"><a href="{url src=index.php?app=goods&spec_id=$goods.spec_id}" title="{$goods.goods_name|escape}" target="_blank" >{$goods.goods_name|escape}</a></dd>


●團購商品 添加title="{$gbgoods.goods_name|escape}"

修改:themes/mall/resource/group_buy.html

        <p class="infolist"><span class="name"><a href="{url src=index.php?
app=groupbuy&act=detail&id=$gbgoods.act_id}">{$gbgoods.goods_name|escape}</a></span><span class="price">{$gbgoods.ext.price|price}</span></p>

改爲:

        <p class="infolist"><span class="name"><a href="{url src=index.php?
app=groupbuy&act=detail&id=$gbgoods.act_id}" title="{$gbgoods.goods_name|escape}">{$gbgoods.goods_name|escape}</a></span><span class="price">{$gbgoods.ext.price|price}</span></p>


●團購列表 添加title="{$groupbuy.goods_name|escape}"

修改:themes/mall/resource/groupbuy_list.html

      <dd class="name"><a href="{url src=index.php?app=groupbuy&act=detail&id=$groupbuy.act_id}" target="_blank">{$groupbuy.goods_name|escape}</a></dd>

改爲:
      <dd class="name"><a href="{url src=index.php?app=groupbuy&act=detail&id=$groupbuy.act_id}" 
title="{$groupbuy.goods_name|escape}" target="_blank">{$groupbuy.goods_name|escape}</a></dd>


●收藏商品 添加title="{$goods.goods_name|escape}"

修改:themes/mall/resource/mc_favorite.html

<p class="name"><a href="index.php?app=goods&id={$goods.goods_id}" target="_blank">{$goods.goods_name|escape}</a></p>

改爲:

<p class="name"><a href="index.php?app=goods&id={$goods.goods_id}" title="{$goods.goods_name|escape}" target="_blank">{$goods.goods_name|escape}</a></p>
相關文章
相關標籤/搜索