wordpress更改首頁(Home) 名称

2012年07月28日

新安装的wordpress很多主题都会带着一个”首页”的页签,因为我的很多页面标题都是英文的,想把这个”首页”改成”Home”,在后台找来找去只找到新增的页面可以更改标题,没有看到这个默认的首页在哪里更改,后来我又用”首页”当关键字来搜索wordpress安装包里的所有文件,我以为在源码文件里会有这个文本,但结果没找到.后来又找了主题里的各个源文件也没找到”首页”的文本.最后还是Google解决了问题,这个方法好像一个台湾或是香港的博客上找到的,反正是写繁体文的.国内打不开…….
要怎麼更改wordpress的 menu上 那一直顯示著”首頁”的頁籤呢
在 [color=Red]wp-includes[/color] 的 [color=Red]post-template.php[/color] 這檔案
找到這行 $text = __(‘Home’);
把 [color=Red]__(‘HOME’)[/color]改成你要的字就行啦(把这行删掉,然后写上你想要的文本就可以了.)
关键字:wordpress 更改 首页 名称 更改 首页 页签 名称


sicnature ---------------------------------------------------------------------
Your current IP address is: 44.200.39.110
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://www.myzhenai.com.cn/post/725.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注