个性化阅读
专注于IT技术分析

在Redux Framework中无法打开子菜单

我正在为WordPress开发主题, 并且正在将reduxframework用于主题开发面板。当我将admin文件夹实现为主题并设置路径后, 我在浏览器中打开了WordPress网站并打开了主题面板, 但是没有打开子菜单。

请注意, 代码没有变化。

这是我在此代码小节中的代码不在管理员端显示

    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', ), )
) );
赞(0)
未经允许不得转载:srcmini » 在Redux Framework中无法打开子菜单

评论 抢沙发

评论前必须登录!