【发布时间】:2012-07-06 17:21:30
【问题描述】:
我是 wordpress 主题设计的新手。我创建了一个新主题,但在外观菜单中它只显示
- 主题
- 小部件
- 编辑器
就像预建的 wp 主题(二十和二十一)一样,我想要所有其他菜单选项。
- 主题
- 小部件
- 菜单
- 主题选项
- 标题
- 背景
- 编辑器
我在谷歌上搜索,只找到了如何添加菜单选项,但没有找到其他选项的解决方案。请帮助我并告诉我它的解决方案。
【问题讨论】:
标签: wordpress wordpress-theming
我是 wordpress 主题设计的新手。我创建了一个新主题,但在外观菜单中它只显示
就像预建的 wp 主题(二十和二十一)一样,我想要所有其他菜单选项。
我在谷歌上搜索,只找到了如何添加菜单选项,但没有找到其他选项的解决方案。请帮助我并告诉我它的解决方案。
【问题讨论】:
标签: wordpress wordpress-theming
更新答案
自定义背景:http://codex.wordpress.org/Custom_Backgrounds
你需要添加主题支持
http://codex.wordpress.org/Function_Reference/add_theme_support
对于小部件http://codex.wordpress.org/Function_Reference/register_sidebar
实际上玩一下 20 或 2111,您会在其中看到代码。 大多数在functions.php中,然后是sidebar.php
快乐编码:)
您确定您当前登录的用户是管理员吗?
如果是,可能是您的 functions.php 或其他 php 文件中有一些代码,或者某些插件禁用了这些选项。
你能检查一下有没有这样的代码
remove_submenu_page('themes.php', 'theme_options');
参考: http://codex.wordpress.org/Function_Reference/remove_submenu_page
【讨论】: