首页 > 网站 > 建站经验 > 正文

方维购物分享系统网站逛街列表页标题优化

2024-04-25 20:44:23
字体:
来源:转载
供稿:网友
方维购物分享系统网站逛街列表页和商品列表页SEO标题优化调用
下面分享下来自星火视频教育论坛管理员——21edu8的研究成果,懂搞的自己可以稍作更改搞上去

<!--{if $current_type == 'bao'}--> //这里是产品页面的
<title>{cutstr $current_obj['name'] 100} - {$_FANWE['setting']['site_title']}</title>
<meta name="keywords" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_keywords']}" />
<meta name="description" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_description']}" />
<!--{elseif  MODULE_NAME == 'u'}--> //这里是会员页面的
<title><!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']} - <!--{/if}--><!--{if empty($no_site_name)}-->{$_FANWE['setting']['site_title']}<!--{/if}--></title>
<meta name="keywords" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_keywords']}" />
<meta name="description" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_description']}" />
<!--{else}-->
{if MODULE_NAME == 'Index'} //这里是首页页面的
<title><!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']} - <!--{/if}--><!--{if empty($no_site_name)}-->{$_FANWE['setting']['site_title']}<!--{/if}--></title>
<meta name="keywords" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_keywords']}" />
<meta name="description" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_description']}" />
{elseif  MODULE_NAME == 'Book'} //这里是产品列表的
<title><!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']} - <!--{/if}--><!--{if empty($no_site_name)}-->{$_FANWE['setting']['site_title']}<!--{/if}--></title>
<meta name="keywords" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_keywords']}" />
<meta name="description" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_description']}" />
{elseif  MODULE_NAME == 'Ask'} //这里是问答页面的
<title><!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']} - <!--{/if}--><!--{if empty($no_site_name)}-->{$_FANWE['setting']['site_title']}<!--{/if}--></title>
<meta name="keywords" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_keywords']}" />
<meta name="description" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_description']}" />
{elseif  MODULE_NAME == 'Club'} //这里是主题页面的
<title><!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']} - <!--{/if}--><!--{if empty($no_site_name)}-->{$_FANWE['setting']['site_title']}<!--{/if}--></title>
<meta name="keywords" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_keywords']}" />
<meta name="description" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_description']}" />

{else}
//这里是其他页面的
<title><!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']} - <!--{/if}--><!--{if empty($no_site_name)}-->{$_FANWE['setting']['site_title']}<!--{/if}--></title>
<meta name="keywords" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_keywords']}" />
<meta name="description" content="<!--{if !empty($_FANWE['nav_title'])}-->{$_FANWE['nav_title']},<!--{/if}-->{$_FANWE['setting']['site_description']}" />
{/if}
<!--{/if}-->

注意:具体内容自己根据自己网站的内容改成相适应的!
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表