admin管理员组

文章数量:1025244

I am using Redux Framework and I am creating a theme and I want all my theme option on my custom created page Like this

but by default Redux Created a different page like this

I am using this configuration

$options_name = 'wee_redux';
$options_name = apply_filters('wee_redux/options_name', $options_name);
$theme = wp_get_theme();
$args = [
    'opt_name'             => $options_name,
    'display_name'         => $theme->get( 'Name' ),
    'display_version'      => $theme->get( 'Version' ),
    'menu_type'            => 'menu',
    'allow_sub_menu'       => true,
    'menu_title'           => __( 'Theme_options' ),
    'page_title'           => __( 'Theme_options' ),
    'google_api_key'       => '',
    'google_update_weekly' => true,
    'dev_mode'             => false,
    'async_typography'     => true,
    'admin_bar'            => true,
    'admin_bar_icon'       => 'dashicons-portfolio',
    'admin_bar_priority'   => 50,
    'update_notice'        => true,
    'customizer'           => false,
    'page_permissions'     => 'manage_options',
    'use_cdn'              => true,
   ]; 

I am using Redux Framework and I am creating a theme and I want all my theme option on my custom created page Like this

but by default Redux Created a different page like this

I am using this configuration

$options_name = 'wee_redux';
$options_name = apply_filters('wee_redux/options_name', $options_name);
$theme = wp_get_theme();
$args = [
    'opt_name'             => $options_name,
    'display_name'         => $theme->get( 'Name' ),
    'display_version'      => $theme->get( 'Version' ),
    'menu_type'            => 'menu',
    'allow_sub_menu'       => true,
    'menu_title'           => __( 'Theme_options' ),
    'page_title'           => __( 'Theme_options' ),
    'google_api_key'       => '',
    'google_update_weekly' => true,
    'dev_mode'             => false,
    'async_typography'     => true,
    'admin_bar'            => true,
    'admin_bar_icon'       => 'dashicons-portfolio',
    'admin_bar_priority'   => 50,
    'update_notice'        => true,
    'customizer'           => false,
    'page_permissions'     => 'manage_options',
    'use_cdn'              => true,
   ]; 
Share Improve this question edited Apr 11, 2019 at 1:16 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Apr 10, 2019 at 17:56 Aakash BhagatAakash Bhagat 531 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Change menu_type to submenu. ;)

I am using Redux Framework and I am creating a theme and I want all my theme option on my custom created page Like this

but by default Redux Created a different page like this

I am using this configuration

$options_name = 'wee_redux';
$options_name = apply_filters('wee_redux/options_name', $options_name);
$theme = wp_get_theme();
$args = [
    'opt_name'             => $options_name,
    'display_name'         => $theme->get( 'Name' ),
    'display_version'      => $theme->get( 'Version' ),
    'menu_type'            => 'menu',
    'allow_sub_menu'       => true,
    'menu_title'           => __( 'Theme_options' ),
    'page_title'           => __( 'Theme_options' ),
    'google_api_key'       => '',
    'google_update_weekly' => true,
    'dev_mode'             => false,
    'async_typography'     => true,
    'admin_bar'            => true,
    'admin_bar_icon'       => 'dashicons-portfolio',
    'admin_bar_priority'   => 50,
    'update_notice'        => true,
    'customizer'           => false,
    'page_permissions'     => 'manage_options',
    'use_cdn'              => true,
   ]; 

I am using Redux Framework and I am creating a theme and I want all my theme option on my custom created page Like this

but by default Redux Created a different page like this

I am using this configuration

$options_name = 'wee_redux';
$options_name = apply_filters('wee_redux/options_name', $options_name);
$theme = wp_get_theme();
$args = [
    'opt_name'             => $options_name,
    'display_name'         => $theme->get( 'Name' ),
    'display_version'      => $theme->get( 'Version' ),
    'menu_type'            => 'menu',
    'allow_sub_menu'       => true,
    'menu_title'           => __( 'Theme_options' ),
    'page_title'           => __( 'Theme_options' ),
    'google_api_key'       => '',
    'google_update_weekly' => true,
    'dev_mode'             => false,
    'async_typography'     => true,
    'admin_bar'            => true,
    'admin_bar_icon'       => 'dashicons-portfolio',
    'admin_bar_priority'   => 50,
    'update_notice'        => true,
    'customizer'           => false,
    'page_permissions'     => 'manage_options',
    'use_cdn'              => true,
   ]; 
Share Improve this question edited Apr 11, 2019 at 1:16 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Apr 10, 2019 at 17:56 Aakash BhagatAakash Bhagat 531 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Change menu_type to submenu. ;)

本文标签: theme developmentRedux Setting on custom created admin page