WordPress 简体中文版菜单“显示选项”无法点击,这个问题早在去年就有了,但现在依旧有新朋友不知道怎么解决,只好发布文章再说明下。
在 外观 – 菜单,点击右上角的“显示选项”无法打开
解决方式:
直接添加下面的代码到当前主题的 functions.php 即可
// 修复显示选项无效 // https://www.waizhuti.com/660.html function waizhuti_fixed_zh_CN_display_option( $translations, $text, $domain ){ if( get_locale() == 'zh_CN' && $text == 'To add a custom link, expand the Custom Links section, enter a URL and link text, and click Add to Menu' && $domain == 'default' ) $translations = '要添加自定义链接,展开自定义链接小节,输入URL和链接文本,然后点击添加到菜单'; return $translations; } add_action( 'gettext', 'waizhuti_fixed_zh_CN_display_option', 10, 3 );
评论前必须登录!
注册