我正在为WordPress开发主题, 并且正在将reduxframework用于主题开发面板。当我将admin文件夹实现为主题并设置路径后, 我在浏览器中打开了WordPress网站并打开了主题面板, 但是没有打开子菜单。
请注意, 代码没有变化。
【在Redux Framework中无法打开子菜单】这是我在此代码小节中的代码不在管理员端显示
Redux::setSection( $opt_name, array(
'title' =>
__( 'Basic Fields', 'redux-framework-demo' ), 'id'=>
'basic', 'desc'=>
__( 'Basic fields as subsections.', 'redux-framework-demo' ), 'icon'=>
'el el-home'
) );
Redux::setSection( $opt_name, array(
'title'=>
__( 'Heder', 'redux-framework-demo' ), 'desc'=>
__( 'Custom Logo' ), 'id'=>
'Header-setting', 'subsection' =>
true, 'fields'=>
array(
array(
'id'=>
'logo', 'type'=>
'media', 'url'=>
true, 'title'=>
__( 'Custom Logo', 'redux-framework-demo' ), 'desc'=>
__( 'Field Description', 'redux-framework-demo'), 'default'=>
'Your Logo', ), )
) );
Redux::setSection( $opt_name, array(
'title'=>
__( 'Footer', 'redux-framework-demo' ), 'desc'=>
__( 'Footer copyright' ), 'id'=>
'footer-setting', 'subsection' =>
true, 'fields'=>
array(
array(
'id'=>
'copyright-footer', 'type'=>
'textarea', 'title'=>
__( 'footer copyright', 'redux-framework-demo'), 'desc'=>
__( 'footer copyright', 'redux-framework-demo'), 'default'=>
'Site is copyright by company', ), )
) );
#1试试看
Redux::setSection( $opt_name, array(
'title' =>
__( 'Basic Fields', 'redux-framework-demo' ), 'id'=>
'basic', 'icon'=>
'el el-home'
) );
Redux::setSection( $opt_name, array(
'title'=>
__( 'Heder', 'redux-framework-demo' ), 'desc'=>
__( 'Custom Logo' ), 'id'=>
'Header-setting', 'subsection' =>
true, 'fields'=>
array(
array(
'id'=>
'logo', 'type'=>
'media', 'url'=>
true, 'title'=>
__( 'Custom Logo', 'redux-framework-demo' ), 'desc'=>
__( 'Field Description', 'redux-framework-demo'), 'default'=>
'Your Logo', ), )
) );
Redux::setSection( $opt_name, array(
'title'=>
__( 'Footer', 'redux-framework-demo' ), 'desc'=>
__( 'Footer copyright' ), 'id'=>
'footer-setting', 'subsection' =>
true, 'fields'=>
array(
array(
'id'=>
'copyright-footer', 'type'=>
'textarea', 'title'=>
__( 'footer copyright', 'redux-framework-demo'), 'desc'=>
__( 'footer copyright', 'redux-framework-demo'), 'default'=>
'Site is copyright by company', ), )
) );
推荐阅读
- Linux 服务器断电查看关机时间
- 基于类别的样式发布存档博客预览
- 在WordPress 4.9中去除图片,视频,iframe周围的自动P标签
- WordPress生成中站点标题,站点内部和站点脚注问题的结构和布局style.css
- WP奇怪的永久链接问题
- WP在网页上粘贴元素(子菜单)
- wp-content之前缺少斜杠&某些上传的图像未显示()
- WP有时会显示未登录用户的页面
- WordPress主题的大小