wordpress - sir am new to wordpress and i didn't get menu button in appearance field what is the issue can you please explain me
问题描述
sir am new to wordpress and i didn't get menu button in appearance field what is the issue can you please explain me..enter image description here
解决方案
i got answer for this problem.i used this function for setting menus
function awesome_theme_setup()
{
add_theme_support('menus');
register_nav_menu('primary', 'primary Header Navigation');
register_nav_menu('secondary','Footer Navigation');
}
for only getting menu on sidemenu on the dashboard i used function like
add_theme_support('menus');
推荐阅读
- scala - 运行一段时间后,带有 kafka 抛出错误的 Spark 结构化流
- php - 在开关循环内切换......我的代码有什么问题?
- jupyter-notebook - 如何为不同的 conda 环境更改 Jupyter 启动文件夹
- c - inet_ntop 导致分段错误
- sql - 循环查找相关记录
- r - 使用 RQDA 进行自动编码
- javascript - 将图像设置为three.js场景背景使其模糊
- python - 如何修复 AttributeError:模块“tensorflow”没有属性“reset_default_graph”
- c# - 各种版本的windows的单元测试
- sql-server - 如何防止 SQL Server 在并行插入时锁定表?