解决WordPress 4.2版本后台显示选项无法打开的问题

站长朋友们在使用的过程中,当把WordPress升级到4.2中文版本以后,会出现在后台外观的菜单选项卡里显示选项无法打开的问题。

解决方法有以下两种。

1. 用之前版本的相关文件替换使用。

找到之前版本里的nav-menus.php文件,路径在/wp-admin/目录,通过FTP上传到网站对应目录,替换相应文件即可。

如果不方便去之前的版本中查找,您可以点击下方的按钮下载nav-menus.php文件。

2. 关掉显示选项旁边的帮助选项卡可以解决显示选项打不开的问题。

切换到主题目录,打开functions.PHP添加以下代码

502_155@-5c891d01ad029473746888" class="@R_502_155@-Syntax @R_502_155@-theme-classic @R_502_155@-font-monaco @R_502_155@-os-pc print-yes notranslate" data-settings=" minimize scroll-mouSEOver" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
502_155@-toolbar" data-settings=" mouSEOver overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">502_155@-title">functions.PHP
502_155@-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
502_155@-button @R_502_155@-nums-button" title="Toggle Line Numbers">
502_155@-button-icon">
502_155@-button @R_502_155@-plain-button" title="Toggle Plain Code">
502_155@-button-icon">
502_155@-button @R_502_155@-wrap-button" title="Toggle Line Wrap">
502_155@-button-icon">
502_155@-button @R_502_155@-expand-button" title="Expand Code">
502_155@-button-icon">
502_155@-button @R_502_155@-copy-button" title="Copy">
502_155@-button-icon">
502_155@-button @R_502_155@-popup-button" title="Open Code In New Window">
502_155@-button-icon">
502_155@-language">PHP
502_155@-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
502_155@-plain-wrap">
502_155@-main" style="">502_155@-table">502_155@-row">
502_155@-nums " data-settings="show">
502_155@-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
502_155@-num" data-line="@R_502_155@-5c891d01ad029473746888-1">1
502_155@-num @R_502_155@-striped-num" data-line="@R_502_155@-5c891d01ad029473746888-2">2
502_155@-num" data-line="@R_502_155@-5c891d01ad029473746888-3">3
502_155@-num @R_502_155@-striped-num" data-line="@R_502_155@-5c891d01ad029473746888-4">4
502_155@-num" data-line="@R_502_155@-5c891d01ad029473746888-5">5
502_155@-num @R_502_155@-striped-num" data-line="@R_502_155@-5c891d01ad029473746888-6">6
502_155@-code">
502_155@-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
502_155@-line" id="@R_502_155@-5c891d01ad029473746888-1">502_155@-c">//~ 解决wordpress 4.2版造成的顶部菜单无法打开问题
502_155@-line @R_502_155@-striped-line" id="@R_502_155@-5c891d01ad029473746888-2">502_155@-t">function502_155@-h"> 502_155@-e">uctheme_remove_help_tabs502_155@-sy">(502_155@-v">$old_help502_155@-sy">,502_155@-h"> 502_155@-v">$screen_id502_155@-sy">,502_155@-h"> 502_155@-v">$screen502_155@-sy">)502_155@-sy">{
502_155@-line" id="@R_502_155@-5c891d01ad029473746888-3">502_155@-h">502_155@-v">$screen502_155@-e">remove_help_tabs502_155@-sy">(502_155@-sy">)502_155@-sy">;
502_155@-line @R_502_155@-striped-line" id="@R_502_155@-5c891d01ad029473746888-4">502_155@-h">502_155@-k ">return502_155@-h"> 502_155@-v">$old_help502_155@-sy">;
502_155@-line" id="@R_502_155@-5c891d01ad029473746888-5">502_155@-sy">}
502_155@-line @R_502_155@-striped-line" id="@R_502_155@-5c891d01ad029473746888-6">502_155@-e">add_filter502_155@-sy">(502_155@-s">'contextual_help'502_155@-sy">,502_155@-h"> 502_155@-s">'uctheme_remove_help_tabs'502_155@-sy">,502_155@-h"> 502_155@-cn">10502_155@-sy">,502_155@-h"> 502_155@-cn">3502_155@-h"> 502_155@-sy">)502_155@-sy">;

相关文章

WordPress是一种使用PHP语言开发的博客平台,用户可以在支持PHP和MySQL数据库的服务器上架设属于自己的...
这两段代码可以让你先体验一下WordPress 3.0的菜单样式 首先在functions.php添加如下代码: register_n...
有人说 WordPress 本身的 SEO 就比较好,我想这个和 WordPress 可以方便的自定义文章的固定链接有分不开...
曾经给大家介绍了在 WordPress 后台移除主题编辑器,今天继续加深,直接关闭 WordPress 后台的文件编辑...
WordPress之iNove主题内容页增加公告栏的方法,导航栏下面默认的公告栏只能在首页显示,只要修改一个文...
大多数WordPress用户都知道该怎么从数千个WordPress主题里挑出自己喜欢,但要自己开发新主题恐怕不是人...