全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2800|回复: 12

[Windows VPS] [已解决]whmcs的首页title 门户首页 几个字怎么去掉

[复制链接]
发表于 2017-3-10 11:07:05 | 显示全部楼层 |阅读模式
本帖最后由 yilin101 于 2017-3-11 17:03 编辑

whmcs的首页title 门户首页 几个字怎么去掉

发表于 2017-3-10 11:22:28 | 显示全部楼层
lang/chinese.php搜索门户首页然后修改
 楼主| 发表于 2017-3-10 11:27:49 | 显示全部楼层
AliopCCCCC 发表于 2017-3-10 11:22
lang/chinese.php搜索门户首页然后修改

原来在这 谢谢
 楼主| 发表于 2017-3-11 17:01:27 | 显示全部楼层
本帖最后由 yilin101 于 2017-3-11 17:04 编辑

楼上的 lang/chinese.php搜索门户首页然后修改
这个方法可以  但是 不美观
会显示成“  - 站点名称”
多了空格和横杠


强迫症不能忍
所以研究了以下代码

修改主题里的 header.tpl
效果看我签名演示


  1. <head>
  2.     <meta charset="{$charset}" />
  3.     <meta content="xxxx" name="author" />
  4.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title>
  7.     <meta name="description" content="" />
  8.     <meta name="keywords" content="" />
  9.     {include file="$template/includes/head.tpl"}
  10.     {$headoutput}
  11. </head>
复制代码


更改为 以下代码 更加的 方便


  1. {if $templatefile == 'homepage'}
  2. <head>
  3.     <meta charset="{$charset}" />
  4.     <meta content="xxxx" name="author" />
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.     <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$companyname}</title>
  8.     <meta name="description" content="" />
  9.     <meta name="keywords" content="" />
  10.     {include file="$template/includes/head.tpl"}
  11.     {$headoutput}
  12. </head>
  13. {elseif $templatefile != 'homepage'}
  14. <head>
  15.     <meta charset="{$charset}" />
  16.     <meta content="xxxx" name="author" />
  17.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18.     <meta name="viewport" content="width=device-width, initial-scale=1">
  19.     <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title>
  20.     <meta name="description" content="" />
  21.     <meta name="keywords" content="" />
  22.     {include file="$template/includes/head.tpl"}
  23.     {$headoutput}
  24. </head>
  25. {/if}
复制代码
发表于 2017-3-11 17:03:03 | 显示全部楼层
删除index.php然后重写
发表于 2017-3-11 17:03:07 | 显示全部楼层
tpl在手,天下你有
 楼主| 发表于 2017-3-11 17:04:30 | 显示全部楼层
阿威 发表于 2017-3-11 17:03
tpl在手,天下你有

哈哈 可以
 楼主| 发表于 2017-3-11 17:06:15 | 显示全部楼层
BGP 发表于 2017-3-11 17:03
删除index.php然后重写

这个太难 不会弄
发表于 2017-3-11 17:14:40 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2017-3-11 17:24:28 | 显示全部楼层
tension 发表于 2017-3-11 17:14
不怕麻烦。不如安装一个 SEO 管理工具来的方便快速。。

分享一下 大佬
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-26 23:57 , Processed in 0.068979 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表