In Wordpress 2.9, how can you restore 'Menus' to the Appearance section of the dashboard? I've been told it requires adding code to functions.php, since uploading a new theme, but almost all of the code examples I find are for 3.0 - 3.5 versions of Wordpress. I'm editing someone else's existing website. My first recommendation was to update, but they wish to stay with the older version.
1条回答 默认 最新
- dongxinjun3944 2013-05-13 20:12关注
You wouldn't be "restoring" it, you'd be adding it. IIRC the custom menu features (Appearance -> Menus) was added in Wordpress 3.0 and didn't exist in 2.9. It might be possible to hack it in, but it could be a lot of work since 3.0 was a very significant update to Wordpress core.
You will probably either need to upgrade to 3.0 (or 3.5.1... which is the smart option since running an ancient version of Wordpress like 2.9 is a huge security risk) or write some kind of custom plugin that will mimic the custom menus functionality in 3.0. If you want to try to hack the feature in using the 3.0 code you'll need to dig pretty deep into core WP code to do so and it would probably take more work than either of the other two options.
Adding code to
functions.php
like you are describing is for 3.0+ versions of WP where you enable the custom menus feature with a single line of code - this won't work in 2.9 since the functionality doesn't exist in core WP for that version. Your client needs to pick between upgrading or paying you to write this feature yourself - they can't expect you to cherry-pick random features from subsequent major WP releases and just "add" them in an older version of WP since they all depend on the updated core files to work at all.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 删除虚拟显示器驱动 删除所有 Xorg 配置文件 删除显示器缓存文件 重启系统 可是依旧无法退出虚拟显示器
- ¥15 vscode程序一直报同样的错,如何解决?
- ¥15 关于使用unity中遇到的问题
- ¥15 开放世界如何写线性关卡的用例(类似原神)
- ¥15 关于并联谐振电磁感应加热
- ¥60 请查询全国几个煤炭大省近十年的煤炭铁路及公路的货物周转量
- ¥15 请帮我看看我这道c语言题到底漏了哪种情况吧!
- ¥66 如何制作支付宝扫码跳转到发红包界面
- ¥15 pnpm 下载element-plus
- ¥15 解决编写PyDracula时遇到的问题