服务热线
15639981097
WordPress 简体中文版菜单“显示选项”无法点击,这个问题早在 8月24日 倡萌就发微博指出了问题所在,接着在 WordPress 圈也传播开来,但是依旧有新朋友不知道怎么解决,只好发布文章再说明下。
在 外观 – 菜单,点击右上角的“显示选项”无法打开:
问题所在如下微博内容所示:
admin-zh_CN.po 翻译错误导致 4.2 – 4.3 菜单设置的“显示选项”无法使用: To add a custom link, <strong>expand the Custom Links section, enter a URL and link text, and click Add to Menu</strong> 翻译的最后一个 </strong> 竟然是 <strong>,也就是这个没有闭合导致的
解决办法:
按照上面提到的问题所在,使用 poedit 这个软件,编辑 wp-content/languages 下的 admin-zh_CN.po,修复下翻译内容即可。或者如果你的是 WordPress 4.3.1 ,可以点击下载 admin-zh_CN 修复包,解压后上传覆盖即可。或者你可以直接添加下面的代码到当前主题的 functions.php 即可:
1function Bing_fixed_zh_CN_display_option( $translations, $text, $domain ){
2if( get_locale() == 'zh_CN' && $text == 'To add a custom link, <strong>expand the Custom Links section, enter a URL and link text, and click Add to Menu</strong>' && $domain == 'default' ) $translations = '要添加自定义链接,<strong>展开自定义链接小节,输入URL和链接文本,然后点击添加到菜单</strong>';
3return $translations;
4}
5add_action( 'gettext', 'Bing_fixed_zh_CN_display_option', 10, 3 );
燕山网络科技 https://www.hnysnet.com/wordpress/2672.html 转载需授权!
2021-04-13
2021-04-08
2021-04-07
2021-04-07
2021-04-07
在文本开始之前,如果你对于自定义文章类型(CustomPostType...
今天将一个数据库导入到本地环境时,提示#1273–Unknownco...
扫一扫二维码,添加客服微信
(¬_¬) 还不快点抢沙发!!!